You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jorge Quiroga <jq...@pctltda.com> on 2006/01/27 21:23:31 UTC

Re: How to escape a conditional close tag ? (version 2)

Hello:

this is my other version

.html

         <table>
           <span jwcid="params@For" index="ognl:numIter" 
source="ognl:paramSelected" value="ognl:parametro">
             <span jwcid="@Insert" value="ognl:startLine" 
raw="ognl:numColParamReached"/>
               <span jwcid="@Insert" value="ognl:numIter"/>
               <td>
                 <span jwcid="valIni@pct:CheckedLookupDialog"
                    showCheckbox="ognl:parametro.hasCheckbox"
                    checkEnabled="ognl:parametro.enabled"
                    displayName="ognl:parametro.campo.displayName"
                    typeOfData="ognl:parametro.strTipo"
                    valor="ognl:parametro.valor"
                    showButton="ognl:parametro.showDialog"
 
dialogURL="/consultas/service=page&page=LookupDialog&session=T"
                   hasRange="ognl:parametro.rango"/>
               </td>
               <span jwcid="@Insert" value="ognl:numIter"/>
             <span jwcid="@If" value="ognl:endLine" 
raw="ognl:numColParamReached"/>
           </span>
         </table>


.java

	public abstract void setNumColParamReached(boolean value);
	public boolean isNumColParamReached(){
		return getUser().getConsulta().getNumParamCols()%getNumIter())==0;
	}

	public String getStartLine() {return "<tr>";}
	public String getEndLine() {return "</tr>";}

Again the same results, :-(. This is getting me crazy. Why this kind of 
things cannot be done easier or at least in a more elegant manner?

JQ


Andreas Andreou wrote:
> Did you really add the raw parameter?
> 
> <span jwcid="@Insert" value="ognl:startTag" raw="ognl:true" />
> 
> 
> 
> Jorge Quiroga wrote:
> 
> 
>>Hello:
>>
>>I agree with you the solution isn´t elegant, and doesn't work because
>>T4 transform the output in &lt;tr&gt; and I tried with literal:<tr>
>>but T4 put the same thing and of course it doesn´t work as I expected
>>
>>It cannot be possible?
>>
>>JQ
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
> 

-- 
  Ing. Jorge Enrique Quiroga
Analista programador
PCT LTDA

Teléfonos: 4800069-4800046-4811984
Dirección: Carrera 28 bis Nº 51-08
Bogota D.C. - Colombia


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org