You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "dinh anh khoa (JIRA)" <ta...@jakarta.apache.org> on 2006/08/14 03:59:14 UTC

[jira] Commented: (TAPESTRY-1052) EventListener - cannot update an Insert component that 'raw' parameter was set to true

    [ http://issues.apache.org/jira/browse/TAPESTRY-1052?page=comments#action_12427790 ] 
            
dinh anh khoa commented on TAPESTRY-1052:
-----------------------------------------

I'm afraid that you misunderstand my issue. This is my code fragment:

html template:

 <div id="report">
        <div jwcid="contentReport@Insert" value="ognl:reportContent" raw="true">content of the Report
        </div>
   </div>

java file:


 public void generateReport(IRequestCycle cycle) {
        out = new ByteArrayOutputStream( );
        format = "html";
        getReportService().runAndRenderReport(out, rpt, paramList, format);

        this.setReportContent(new String(out.toByteArray()));

        cycle.getResponseBuilder().updateComponent("report");

    }

And the result as my previous comment, component 'report' did not render anything.

please take a look at it.
thanks.




> EventListener -  cannot update an Insert component that 'raw' parameter was set to true
> ---------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1052
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1052
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Annotations
>    Affects Versions: 4.1.1
>         Environment: os: Solaris
> snapshot: tapestry-annotations-4.1.1-20060808.024719-11
>            Reporter: dinh anh khoa
>         Assigned To: Jesse Kuhnert
>
> *  I create two components A & B
> *  When click on a button on A, the EventListener will be invoke and generate a html text, and update B
> *  Inside B, I used Insert component to output the raw html text. So, I set the raw parameter of Insert component to true.
> * Proplemt is that EventListener was invoked on A, the html text was generated, but B  is rerender with nothing change
> * When I set 'raw' parameter of Insert component to false, then the html text is filter  and output on the screen (but all of '<' characters is replace by '&lt', '>' is replace by '&gt' ...) 
> Lookat the implementation of Insert component I see that there is a printRaw() method to out put the raw text to the screen.  May be the ResponseBuilder did not call it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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