t:panelTabbedpane tag of tomahawk

I am trying to use <t:panelTabbedpane> but i am unable to use it
i am trying myfaces1.1.2 jars and tomahawk1.1.2 jars
is this version of myfaces support <t:panelTabbedpane>
I am able to use use <t:inputDate> but unable to use <t:panelTabbedpane>
my code is :::
<t:panelTabbedPane bgcolor="#FFFFCC">
<t:panelTab label="Tab 1">
<f:verbatim><H1>Tab 1</H1></f:verbatim>
</t:panelTab>
<t:panelTab label="Tab 2">
<f:verbatim><H1>Tab 2</H1></f:verbatim>
</t:panelTab>
<t:panelTab label="Tab 3">
<f:verbatim><H1>Tab 3</H1></f:verbatim>
</t:panelTab>
</t:panelTabbedPane>
i m getting message::::
javax.faces.FacesException: org.apache.jasper.JasperException
     at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
     at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
     at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
     at java.lang.Thread.run(Thread.java:534)
Pls help me ,
suggesting me that are the actual requirement for using this component and the probable area of error
thanks

i used tomahawk's panelTabbedpane component.
first, you have to import tomahawk-1.1.3.jar and commons-fileupload-1.1.1.jar to lib folder.
second, you have to add these lines to your web. xml file.
     <!-- FOR TOMAHAWK COMPONENTS!!! -->
     <filter>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
         <init-param>
             <param-name>maxFileSize</param-name>
             <param-value>20m</param-value>
         </init-param>
     </filter>
     <filter-mapping>
         <filter-name>MyFacesExtensionsFilter</filter-name>
         <servlet-name>Faces Servlet</servlet-name> <!-- Your JSF Servlet name!!! -->
     </filter-mapping>
     <filter-mapping>
         <filter-name>MyFacesExtensionsFilter</filter-name>
         <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
     </filter-mapping>after doing all of these, you should use tomahawks compos.

Similar Messages

  • Help needed for t:panelNavigation2 tag of Tomahawk

    Hi,
    I am using <t:panelNavigation2> panel component for myfaces. We are using http://www.irian.at/myfaces/panelnavigation_2.jsf example for our implementation.
    Our requirement is to add image to the root component. If you look at the above example then we want to add image src before "Product Information" menu item and same for other menu items.
    I am not sure whether <t:panelNavigation2> is providing any img attribute.
    Let me know if there are any ways to do so.
    Regards
    Chintan

    i used tomahawk's panelTabbedpane component.
    first, you have to import tomahawk-1.1.3.jar and commons-fileupload-1.1.1.jar to lib folder.
    second, you have to add these lines to your web. xml file.
         <!-- FOR TOMAHAWK COMPONENTS!!! -->
         <filter>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
             <init-param>
                 <param-name>maxFileSize</param-name>
                 <param-value>20m</param-value>
             </init-param>
         </filter>
         <filter-mapping>
             <filter-name>MyFacesExtensionsFilter</filter-name>
             <servlet-name>Faces Servlet</servlet-name> <!-- Your JSF Servlet name!!! -->
         </filter-mapping>
         <filter-mapping>
             <filter-name>MyFacesExtensionsFilter</filter-name>
             <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
         </filter-mapping>after doing all of these, you should use tomahawks compos.

  • Using  Tomahawk   t:tabChangeListener/ with t:panelTab/

    Hi ,
    I am using tomahawk <t:panelTabbedPane/> tag. However I would like an action event to be fired and would like to refresh my page on clicking a particular tab(i.e.<t:panelTab />) on the pane.On searching google I found <t:tabChangeListener/>.But i dont now how to use it.If anyone has idea of how to use it or any other alternative solution , it would be of great help.This is an emergency.

    I'd guess these questions need to be anserwed by AT&T...
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • T:tabChangeListener tag not recognized error when using in facelets

    I am trying to use tomahawk's TabChangeListener with PanelTabbedPane, but when I add the tabChangeListener tag in the body of the <t:panelTabbedPane /> , I get an error: "<t:tabChangeListener> Tag Library supports namespace: http://myfaces.apache.org/tomahawk, but no tag was defined for name: tabChangeListener". I have used many other tomahawk components with no problem. Do I have to configure my tomahawk taglib to include that tag? I am using tomahawk in facelets.
    Here is facelets source:
    <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jstl/core"
        xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:fr="http://myproject.com/test/jsf">
    <t:panelTabbedPane selectedIndex="#{coverageDisplay.startIndex}" serverSideTabSwitch="#{true}">
              <t:panelTab label="#{lbls.vehCovDetailsTab1}" rendered="#{vehiclesBean.vehicles.rowCount > 0}" >
                  <fr:vehCovSummTab />
              </t:panelTab>
              <t:panelTab label="#{lbls.vehCovDetailsTab2}" rendered="#{vehiclesBean.vehicles.rowCount > 3}" >
                  <fr:vehCovSummTab />
              </t:panelTab>
              <t:panelTab label="#{lbls.vehCovDetailsTab3}" rendered="#{vehiclesBean.vehicles.rowCount > 6}" >
                  <fr:vehCovSummTab />
              </t:panelTab>
              <t:tabChangeListener type="myproject.MyTabChangeListener" />
    </t:panelTabbedPane>My tomahawk.taglib.xml:
        <tag>
            <tag-name>panelTabbedPane</tag-name>
            <component>
                <component-type>org.apache.myfaces.HtmlPanelTabbedPane</component-type>
                <renderer-type>org.apache.myfaces.TabbedPane</renderer-type>
            </component>
        </tag>My tomahawk.tld:
            <!-- panelTabbedPane -->
        <tag>
            <name>panelTabbedPane</name>
            <tag-class>org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPaneTag</tag-class>
            <body-content>JSP</body-content>
                    <!-- UIPanel attributes -->
            <!-- UIComponent attributes -->
            <attribute>
                <name>id</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <type>java.lang.String</type>
                <description>Every component may have an unique id. Automatically created if omitted.</description>
            </attribute>
            <attribute>
                <name>rendered</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <type>java.lang.String</type>
                <description>If false, this component will not be rendered.</description>
            </attribute>
            <attribute>
                <name>binding</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <type>java.lang.String</type>
                <description>Component binding.</description>
            </attribute>
            <!-- HTML 4.0 universal attributes -->
            <attribute><name>dir</name>     <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>lang</name>    <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>style</name>   <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>title</name>   <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute>
                <name>styleClass</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <description>Corresponds to the HTML class attribute.</description>
            </attribute>
            <!-- HTML 4.0 event-handler attributes -->
            <attribute><name>onclick</name>    <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>ondblclick</name> <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>onmousedown</name><required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>onmouseup</name>  <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>onmouseover</name><required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>onmousemove</name><required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>onmouseout</name> <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>onkeypress</name> <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>onkeydown</name>  <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>onkeyup</name>    <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <!-- HTML 4.0 table attributes -->
            <attribute><name>align</name>           <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>border</name>          <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>bgcolor</name>         <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>cellpadding</name>     <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>cellspacing</name>     <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>datafld</name>         <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>datasrc</name>         <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>dataformatas</name>    <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>frame</name>           <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>rules</name>           <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>summary</name>         <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <attribute><name>width</name>           <required>false</required>  <rtexprvalue>false</rtexprvalue></attribute>
            <!-- MyFaces extension: user role attributes -->
            <attribute>
                <name>enabledOnUserRole</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <description>
                    If user is in given role, this component will be rendered
                    normally. If not, no hyperlink is rendered but all nested
                    tags (=body) are rendered.
                </description>
            </attribute>
            <attribute>
                <name>visibleOnUserRole</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <description>
                    If user is in given role, this component will be rendered
                    normally. If not, nothing is rendered and the body of this tag
                    will be skipped.
                </description>
            </attribute>
            <attribute>
                <name>selectedIndex</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <description>
                    Index of tab that is selected by default.
                </description>
            </attribute>
            <attribute>
                <name>activeTabStyleClass</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <description>
                    Style class of the active tab cell.
                </description>
            </attribute>
            <attribute>
                <name>inactiveTabStyleClass</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <description>
                    Style class of the inactive tab cells.
                </description>
            </attribute>
            <attribute>
                <name>disabledTabStyleClass</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <description>
                    Style class of the disabled tab cells.
                </description>
            </attribute>
            <attribute>
                <name>activeSubStyleClass</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <description>
                    Style class of the active tab sub cell.
                </description>
            </attribute>
            <attribute>
                <name>inactiveSubStyleClass</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <description>
                    Style class of the inactive tab sub cells.
                </description>
            </attribute>
            <attribute>
                <name>tabContentStyleClass</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
                <description>
                    Style class of the active tab content cell.
                </description>
            </attribute>
        </tag>
        <!-- tab change listener -->
        <tag>
            <name>tabChangeListener</name>
            <tag-class>org.apache.myfaces.custom.tabbedpane.TabChangeListenerTag</tag-class>
            <body-content>empty</body-content>
            <attribute>
                <name>type</name>
                <required>true</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
        </tag>Message was edited by:
    citress
    Message was edited by:
    citress

    I have the same question. Does someone have a solution for this?

  • Help with the custom tag

    Hi
    i want to make a custom tag encapsulating certain functionalities of existing tags in one tag namely tomahawk dataPanel and html facets.
    Where can I get the source for html jsf tags so that I can look into it and modify.
    Thanks

    Originally posted by: mbuc.edp-progetti.it
    Would you like to know a fine workaround?
    If you have in your jsps a reference to the tld like this:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    make a C:\WEB-INF\ directory on your PC and copy in there your tlds
    (C:\WEB-INF\struts-html.tld). The same for linux: /WEB-INF/struts-html.tld.
    So you do not have to change anything in web.xml nor in the jsp pages!
    Bye,
    Marco.
    "marco" <[email protected]> ha scritto nel messaggio
    news:cfhrgj$bcj$[email protected]..
    > Davis,
    > thanks for the reply. I followed your suggestion and now I am able to see
    > the code assist working.
    > I am currently using the lomboz editor, but one thing that is missing in
    > lomboz and is present in the structured editor (and in Intellij Idea) is
    the
    > ability to see where a tag is opened and closed, also for html tags.
    Perhaps
    > to someone this should seem not so important, but for me it is very
    usefull!
    >
    > As a first impression, I can only make a lot compliments to both
    > contributions (ObjectWeb and IBM).
    >
    > Bye,
    > Marco.
    >
    >
    > "David Williams" <[email protected]> ha scritto nel messaggio
    > news:[email protected]..
    > >
    > > No, you're not missing anything. Its just with that version of code the
    > > "tld resolver" (that knows where to look for TLD's) is not correct. I
    > > haven't tried it with struts, but with a minor test I tried,
    > > I just made a copy of the TLD to put in the same folder as the JSP file.
    > > Then the editor (and content asssit), can find it and all should be ok.
    Of
    > > course, I'm not suggesting this for a long term solution, but just to
    see
    > > if it allows you to get a little further in evaluating overall.
    >
    >

  • Dynamically building 'value' attributes with EL

    I'm trying to create an <af:inputText> component with a dynamic 'value' attribute. I'd like to generate something like this:
    <af:inputText value="#{myBean.myField}"/>
    Where 'myField' is a string stored in another var...#{myField}.
    Essentially I'd like to concatenate '#{myBean.', #{myField}, and '}' and use it to dynamically specify the value that the inputText is mapped to.
    Is there a way to do this with the JSF EL?
    Thank you.

    I'm almost positively sure that you cannot do what you want to do.
    But why do you want do do such a thing like that?
    If you want to do a reusable page, you can use the alias bean tag of Tomahawk (www.myfaces.org)

  • Help needed with Myfaces - tomahawk t:panelTabbedPane form tag iserted wh

    when i Use tomahawk <t:panelTabbedPane> component, during rendering stage. its atomatically inserts <form> tag around it.
    Is there any way to avoid this <form tag. because, I am using 3 tab column, and each tab has got its own form tag.
    so in that case. there is <form> inside <form>, thats giving errors when using some javascript function with this..
    is there any solution for this

    Hi,
    Could you please tell us if you are using Sun Java Studio Creator for building your web application.
    RK

  • Tomahawk , panelTabbedPane problem...

    Hi,
    i am working with tabbedpane control of tomahawk, when i am including a plain jsp page like ....
    <t:panelTabbedPane serverSideTabSwitch="false">
         <t:panelTab id="tab1" label="TabbedPanel1">
             <f:verbatim><jsp:include page="profile.jsp"/> </f:verbatim>
    </t:panelTab>it is working fine. but when i try to include a jsf page , which has taglib directives to include core and html components of jsf, it is giving error on server console as well on browser also...
    stack trace ...
    2007-07-27 16:15:50,421 ERROR [org.apache.myfaces.taglib.core.ViewTag] Error writing endDocument
    java.io.IOException: Illegal to flush within a custom tag
         at javax.servlet.jsp.tagext.BodyContent.flush(BodyContent.java:79)
         at javax.faces.webapp._PageContextOutWriter.flush(_PageContextOutWriter.java:45)Help me to solve this issue....
    Thanks in advance...

    Hi...Thanks for reply...
    i tried flush attribute...but no use...
    i tried removing verbatim , it is not even showing the plain jsp page also.... i think may be there is a problem with @taglib....
    i had to include those files in the main file as well in profile file as i am using some members of those taglibraries in both the files....
    any other suggestion....

  • Dynamic tabs in Tomahawk panelTabbedPane

    I want to create a t:panelTabbedPane with a dynamic number of tabs. It's quite straightforward if implemented in a backing bean:
      <t:panelTabbedPane binding="#{MyBean.tabbedPane}"/>
      public class MyBean {
        public HtmlPanelTabbedPane getTabbedPane() {
          HtmlPanelTabbedPane tabbed = new HtmlPanelTabbedPane();
          //Loop as desired
          HtmlPanelTab tab = new HtmlPanelTab();
          tab.setLabel("My tab");
          tab.setId("tab_0");
          tabbed.getChildren().add(tab);
          return tabbed;
      }However, once I have my dynamically added tabs, I run into trouble when I want to populate them. Is there a convenient way to add JSF content to these tabs, defined using regular JSF tags? If not I guess I'll have to generate all the content using Java. I'm having a hard time finding much information about how to set values (EL expressions for example) and bindings for the components inside the tabs. Any ideas are appreciated!

    Once you are in the programmatic realm, I am not aware of a standard way to include components generated from a view representation like a JSP or Facelet file.
    As to the EL expressions, use UIComponent.setValueExpression() along with Application.getExpressionFactory() and ExpressionFactory.createValueExpression(). For the action attribute of the command components, use UICommand.setActionExpression() and ExpressionFactory.createMethodExpression().

  • Tomahawk pannelTabbedPane tag

    Hi,
    I am trying to make a simple tab page. My code is..
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <html>
    <head>
    <title>t:panelTabbedPane example<title>
    </head>
    <body>
    <center>
    <f:view>
         <t:panelTabbedPane width="400" bgcolor="#cddcf6"
    align="center"
    serverSideTabSwitch="false"
    selectedIndex="0">
              <t:panelTab label="First">
                   <h:form id="form1">
                        <t:outputText value="Client Side First Tab Content."/>
                   </h:form>
              </t:panelTab>
              <t:panelTab label="Second">
                   <h:form id="form2">
                        <t:outputText value="Client Side Second Tab Content." />
                   </h:form>
              </t:panelTab>
         </t:panelTabbedPane>
    </f:view>
    </center>
    </body>
    </html>
    When I run, I got following error..
    "ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html"
    I have setuped extension filter on web.xml file. Still I have same error.
    Any one has any idea???

    qadeeralvi wrote:
    "ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html"
    I have setuped extension filter on web.xml file. Still I have same error.
    Any one has any idea???The most likely thing would be that there is an error in the configuration of the Extensions filter. Please post the relevant parts of the web.xml (all the URL mappings and filter configurations) and what is the URL you are using to access the resource which generates the error.

  • Would tomahawk selectOneRadio work in html  table tag

    hey guys,
    i want to use the tomahawk tag in a html table in JSF pages, but it seen unwork, my example is shown below
    <f:view>
    <h:form>
    <table>
    <!-- include from the other pages called LIC3320.jsp -->
    <x:selectOneRadio id="select" layout="spread" forceId="true" forceIdIndex="false" value="#{LIC3320.currentSelect}">
    <f:selectItem itemValue="dog" itemLabel="Dog"/>
    <f:selectItem itemValue="cat" itemLabel="Cat"/>
    <f:selectItem itemValue="fish" itemLabel="Fish"/>
    </x:selectOneRadio>
    <f:verbatim>
    <tr><td align="center" colspan="4">
    </f:verbatim>
    <x:radio for="select" index="0"></x:radio>
    <f:verbatim>
    </td></tr>
    </f:verbatim>
    <!-- include from the other pages called LIC3320.jsp -->
    </table>
    </h:form>
    <f:view>
    the main problem is the radio isn't in the table, it came before the table and show at the top of the table. Is if i use tomahawk tag, i must use datetable in JSF?
    Thanks
    emmy

    We have successfully used the Tomahawk radio component within a plain table using JSF 1.1 (MyFaces 1.1.5) and JSF 1.2 (the Sun RI 1.2_04). We also use facelets however and so did not use the verbatim tag.
    Did you try looking at the component tree to see if it is in the correct order?
    What implementation and version of JSF are you using?
    Which version of Tomahawk?
    Did you check the generated HTML to see if it is what you expect?

  • T:selectOneRadio requiredMessage tag is not foune in tomahawk lib

    Hello,
    I want to give custom required message for radio button when user do not select one. But i didn't get any tag like JSF has "requiredMessage".
    Can anyone suggest me how to implement this functionality.
    code for select one radio is follow:
                  <t:selectOneRadio id="sor" value="SI" layout="pageDirection"
                   required="true" >
                   <f:selectItem id="si1" itemLabel="" itemValue="sa"/>
                   <f:selectItem id="si2" itemLabel="" itemValue="lo" />
                   <f:selectItem id="si3" itemLabel="" itemValue="lg" />
                   <f:selectItem id="si4" itemLabel="" itemValue="bq" />
              </t:selectOneRadio>What i need is to give requiredMessage like in JSF, we can give as follows:
                  <h:selectOneRadio id="sor" value="SI" requiredMessage="Please Select Radio" id="radio" required="true">
                   <f:selectItem id="si1" itemLabel="" itemValue="sa"/>
                   <f:selectItem id="si2" itemLabel="" itemValue="lo" />
                   <f:selectItem id="si3" itemLabel="" itemValue="lg" />
                   <f:selectItem id="si4" itemLabel="" itemValue="bq" />
              </h:selectOneRadio>But i didn't find any tag like requiredMessage in tomawak.
    Can anyone help me on this?
    Thank you,
    Bipin Sutariya

    The Tomahawk components are (Java) extensions of the standard components, so since the property is on the standard component, it will be on the Tomahawk component. If you are using Facelets, then no problem, just use the property and it ought to work. If you are using JSP, you need to hope that the tag implementation includes the property.

  • Tomahawk panelTabbedPane and panelTab index

    Hi.
    I use Tomahawk components in my web pages.
    In my panelTabbedPane, I use a loop to load the component of each panelTab.
    <t:panelTabbedPane serverSideTabSwitch="true">
    <c:forEach items="${actionTool.tabsList}" var="tab">
    <t:panelTab label="#{tab.label}">
    <ui:include src="#{tab.link}" />
    </t:panelTab>
    </c:forEach>
    </t:panelTabbedPane>
    I would like to load only the select panelTab. What can I do ?
    Can I get the instance of PanelTabbedPane created ?
    Can I get the actual panelTab activated via the panelTabbedPane ?
    Tanks.
    f_b
    Message was edited by:
    florent_b

    Ah well .. I misunderstood "imbricated form errors".
    Sorry, I don't have practical experience with this specific component. But such a construction just works with IBM's odc:tabbedPanel.
    You might try to look for another components. I know, IceFaces also have a tabbedpanel component.

  • Problem in tomahawk panelTabbedPane

    Hi
    I m trying to use the panel tabbed pane with the serversidetabswitch = true. Therefore I have declared a tab change listener with the following source code
    public class TabSupport implements Serializable, TabChangeListener
    private static final long serialVersionUID = 1L;
    int selectedTabIndex;
    public TabSupport()
    public int getSelectedTabIndex() {
      //System.out.println(" Property getSelectedTabIndex() accessed " + selectedTabIndex);
      return selectedTabIndex;
    public void setSelectedTabIndex(int selectedTabIndex) {
      //System.out.println(" Property setSelectedTabIndex() accessed");
      this.selectedTabIndex = selectedTabIndex;
    public void processTabChange(TabChangeEvent event){
      System.out.println("TabSupport:processTabChange() called " + event.getNewTabIndex() + " " + event.getPhaseId());
      this.selectedTabIndex = event.getNewTabIndex();
    }When I change the tab the listener is invoked which sets selectedTabIndex value accordingly and I can see this through the system message. But in the generated html the selected tab content doesnt show meaning selectedTabIndex is still 0. It hasnt been assigned to the new value or has been overwritten. TabSupport is in the session scope. Following is my jsp code
    <!
    DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@
    page contentType="text/html;charset=UTF-8" language="java" %>
    <%@
    taglib prefix="c" uri ="http://java.sun.com/jstl/core" %>
    <%@
    taglib prefix="f" uri ="http://java.sun.com/jsf/core" %>
    <%@
    taglib prefix="h" uri ="http://java.sun.com/jsf/html" %>
    <%@
    taglib uri="http://myfaces.apache.org/tomahawk " prefix="t"%>
    <
    f:view>
    <f:loadBundle basename="com.prytania.resource.Messages " var="messages"/>
    <html>
    <head>
    <title><h:outputText value="#{messages['title']}"/></ title>
    <t:stylesheet path="/report.css" />
    </head>
    <body>
    <h:form id="portfolioFatherForm" >
    <f:subview id="header" >
    <jsp:include page="inc/page_header.jsp" />
    </f:subview>
    <f:verbatim>
    <br/>
    </f:verbatim>
    <t:panelTabbedPane
    selectedIndex="#{tabSupport.selectedTabIndex}"
    styleClass="tabbedPane"
    width="100%"
    bgcolor="#FFFFCC"
    activeTabStyleClass="activeTab"
    inactiveTabStyleClass="inactiveTab"
    activeSubStyleClass="activeSub"
    inactiveSubStyleClass="inactiveSub"
    tabContentStyleClass="tabContent"
    serverSideTabSwitch="true"
    >
    <t:panelTab label=" #{messages['portfolio_summary']}" >
    <f:subview id="tabportfoliosummary" rendered="#{(tabSupport.selectedTabIndex==0)}" >
    <jsp:include page="portfoliosummary.jsp " />
    </f:subview>
    </t:panelTab>
    <t:panelTab label=" #{messages['portfolio_detail']}">
    <f:subview id="tabportfoliodetail" rendered="#{(tabSupport.selectedTabIndex==1)}" >
    <jsp:include page="portfoliodetail.jsp " />
    </f:subview>
    </t:panelTab>
    <t:panelTab label=" #{messages['portfolio_statistics']}">
    <f:subview id="tabportfoliostatistics" rendered="#{(tabSupport.selectedTabIndex==2)}" >
    <jsp:include page="portfoliostatistics.jsp " />
    </f:subview>
    </t:panelTab>
    <t:tabChangeListener type="com.prytania.listeners.TabSupport " />
    </t:panelTabbedPane>
    <f:subview id="footer" >
    <jsp:include page="inc/page_footer.jsp" />
    </f:subview>
    </h:form>
    </body>
    <html>
    </
    f:view> I shall be highly obliged with any responses.
    Hassnain

    even though the issue is a little bit old, but with this extension the solution of hassnaimbadami works fine:
    if you call the function "processTabChange" the servlet creates a new insatnce of the class TabSupport. if you get the right instance of the backing bean which actually refers to the "#{tabSupport.selectedTabIndex}" from the context every thing works.
    For exampel like that:
    public void processTabChange(TabChangeEvent event){
    backingBean = (TabSupport) FacesUtils.getManagedBean("tabSupport")
    backingBean.setTabindex(event.getNewTabIndex());
    ---> FacesUtils:
    package ..
    import javax.faces.application.Application;
    import javax.faces.application.ApplicationFactory;
    import javax.faces.FactoryFinder;
    import javax.faces.el.ValueBinding;
    public class FacesUtils {
         * Get managed bean based on the bean name.
         * @param beanName the bean name
         * @return the managed bean associated with the bean name
         public static Object getManagedBean(String beanName) {
              Object o = getValueBinding(getJsfEl(beanName)).getValue(FacesContext.getCurrentInstance());
              return o;
         private static ValueBinding getValueBinding(String el) {
              return getApplication().createValueBinding(el);
         private static String getJsfEl(String value) {
              return "#{" + value + "}";
         private static Application getApplication() {
              ApplicationFactory appFactory = (ApplicationFactory)FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
              return appFactory.getApplication();
    }

  • Are there any restrict to layouts of the tomahawk tag: inputFileUpload

    As mentioned in title, I use this tag in two jsps. The first is directly included in a h:form, And the second is in a
    ui:composition component of, like below:
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jstl/core"
    xmlns:fn="http://java.sun.com/jsp/jstl/functions"
    xmlns:t="http://myfaces.apache.org/tomahawk">
    But the first page can work without any problem, while the second page can't get the upload value, always return null
    I'll be so appreciate if anyone would give some tips.

    The uploaded file will be null if either the extensions filter isn't configured properly or you aren't using the multipart/form-data encoding type for the POST request.

Maybe you are looking for

  • F110-Enhancement: User want to reran the same proposal after delete

    Hi guys It would be great if ane one having answers. User want to rerun the same proposal  when he likes to update the exchage rate after the payment proposal made   .For this, he will delete the proposal and reran the same proposal. This is for only

  • Adobe Acrobat 9

    I have found that after creating a pdf and forwarding to another that the formating is off. The problem is that pages 12 plus are converted to 8.5 x 14, even though the document (original WORD) was 8.5 x 11. What is happening in the conversion to PDF

  • Purchase Order Form design

    Hi Friends, Please help to me to get the information of below requirement, List of all the fields we'll need to include in the Purchase Order Form (start with the standard fields). List to contain the Label Name of the Field on the Form with its appr

  • Unable to add document to SP 2010 library

    In a SP 2010 library I'm unable to add a document to a specific library. When I try adding the document SP says that the file is checked out for editing by someone.  However, the file doesn't exist in the library and the require check-out option isn'

  • Photo slideshow app?...

    Hi all, I'm after an app which can create some very simple photo slideshows, but with a few specific functions. a) I want to be able to change to the next photo manually by a click - I'm not interested in being able to set a certain time, but manuall