myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Volker Weber" <v.we...@inexso.de>
Subject Re: How to parse parsed values?
Date Thu, 15 Feb 2007 16:52:32 GMT
Hi Benjamin,

i don't know what you realy want to do, but for your example this will do it:

public String getPageInformationSettings()
    {
      String test = "<hr />Start!<hr /><br /><form jsfc=\"h:form\"
id=\"form_test\">";
      test += "<br />InputText = '<input jsfc=\"h:inputSecret\"
id=\"is\" value=\""

     FacesContext facesContext = FacesContext.getCurrentInstance();
     ValueBinding binding
         = facesContext.getApplication().createValueBinding("#{SettingsBean.new1}");
     test += binding.getValue(facesContext);

     test += " test\">";
     test += "</form>";
     return test;
   }

Regards,
  Volker

2007/2/15, Benjamin.Oesterle@bertelsmann.de <Benjamin.Oesterle@bertelsmann.de>:
> Hello all.
>
> I would like to parse a parsed string in my jsf-file.
> The main idea is to use a designed jsf-page in many other jsf-pages
> which could not reference to the original page.
>
> Maybe a small example could explain better, what i mean.
>
> 1. Page to show in Browser (settings.jsf):
> <h:outputText value="#{WebMasterPageLoader.pageInformationSettings}"
> escape="false" />
>
> 2. JavaBean to include page:
>         public String getPageInformationSettings()
>         {
>                 String test = "<hr />Start!<hr /><br /><form
> jsfc=\"h:form\" id=\"form_test\">";
>                 test += "<br />InputText = '<input
> jsfc=\"h:inputSecret\" id=\"is\" value=\"#{SettingsBean.new1} test\">";
>                 test += "</form>";
>                 return test;
>         }
>
> 3. Currently show-version in browser:
>
> ------------------------------------------------------------------------
> --
>         Start!
>
> ------------------------------------------------------------------------
> --
>         InputText = [#{SettingsBean.new1} test]
>
> The String test will later on be replaced by a file-read-logic.
> But how to parse the String?
> May i use an other component then outputText?
>
> Thanks for help.
>
> Best wishes Benjamin
>

Mime
View raw message