Subversion Repositories linid-dm

Compare Revisions

Rev 310 → Rev 311

/main/java/org/linid/dm/wui/t5lib/components/PhotoDisplayer.java
13,6 → 13,7
import org.apache.tapestry5.StreamResponse;
import org.apache.tapestry5.annotations.OnEvent;
import org.apache.tapestry5.annotations.Parameter;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.corelib.components.Zone;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.ioc.annotations.Value;
24,6 → 25,10
@Parameter(required=true)
private String userUid;
@SuppressWarnings("unused")
@Parameter
@Property(write=false)
private boolean enableZoom;
@Inject
private ComponentResources resources;
/main/resources/org/linid/dm/wui/t5lib/components/PhotoDisplayer.tml
1,19 → 1,31
<t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" >
<t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" xmlns:p="tapestry:parameter">
 
<div id="PhotoDisplayer">
<div id="PhotoDisplayer">
 
<t:if test="enableZoom">
<t:jquery.dialogajaxlink t:dialog="dialogZoom" t:zone="myZone">
<img class="userPhoto" src="${picUrl}" title="${message:components.photodisplayer.zoom}"/>
<img class="userPhoto" src="${picUrl}" title="${message:components.photodisplayer.zoom}"/>
</t:jquery.dialogajaxlink>
</div>
<t:jquery.dialog t:id="dialogZoom" t:clientId="dialogZoom" title="${message:components.photodisplayer.close}">
<t:jquery.dialog t:id="dialogZoom" t:clientId="dialogZoom" title="${message:components.photodisplayer.close}">
<t:zone t:id="zoneZoom" id="zoneZoom" >
<div id="PhotoDisplayerZoom" >
<img class="userPhotoZoom" src="${picUrl}" />
</div>
</t:zone>
<t:zone t:id="zoneZoom" id="zoneZoom" >
<div id="PhotoDisplayerZoom" >
<img class="userPhotoZoom" src="${picUrl}" />
</div>
</t:zone>
</t:jquery.dialog>
</t:jquery.dialog>
 
<p:else>
<img class="userPhoto" src="${picUrl}"/>
</p:else>
</t:if>
</div>
</t:container>