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....

Similar Messages

  • 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();
    }

  • Tomahawk panelTabbedPane Styling Tab Labels

    Hello,
    Does anyone know how to change the text style of Tomahawk's paneltabbedPane? I tried specifying CSS style info for activeTabStyleClass, and strangely I could change the tab label background color but not the font/size/color of the text.
    Any ideas?
    Thanks,
    Greg

    Posting JSF source code instead of the generated HTML code doesn't help much in solving CSS (and JS) problems. And if you do so, better use a CSS forum instead of a JSF forum.

  • Tomahawk inputCalendar problem

    Hi i am using the calender tag. The code is given below
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <t:inputCalendar
    id="calendar" value=""
    renderAsPopup="true"
    popupDateFormat="MM/dd/yyyy"
    renderPopupButtonAsImage="true"
    />
    The first problem i m having is that popupButtonImageUrl attribute is not availble even though i set renderPopupButtonAsImage="true" .
    Secondly i am also getting some javascript error that "object expected".
    Please help me out.
    Thankyou

    Exception is:
    SEVERE: Exception starting filter MyFacesExtensionsFilter
    java.lang.ClassNotFoundException: org.apache.myfaces.webapp.filter.ExtensionsFilter
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:209)
         at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
         at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
         at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4193)
         at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1089)
         at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1187)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1305)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
         at java.lang.Thread.run(Thread.java:595)

  • Tomahawk panelTabbedPane Styles

    Hello
    I tried specifying CSS style info for activeTabStyleClass and inactiveTabStyleClass, and strangely I could change the tab label background color but not the font/size/color of the text. I have seen in the generated html that is part of a text input, but can not find how to change the format of this. (when the tab is inactive the text appears within a gray rectangle)
    Does anyone know how to change the style of this componentent?
    the code is:
    <t:panelTabbedPane serverSideTabSwitch="false" selectedIndex="#{menu.focusIndex}"
              activeTabStyleClass="activeTab"
              inactiveTabStyleClass="inactiveTab"
              tabContentStyleClass="tabxwip"     
              >
              <t:panelTab id="tab1" label="Config">
                   <h:panelGrid id="up" columns="2" styleClass="tabGrid">
                        ...and the css
    .activeTab {
         background-color: white;
         width: 120px;
         font-size: 100%;
         padding: 20px;
         text-align: center;
         font-weight: bold;
         height: 20px;
    .inactiveTab {
         background-color: #A1045F;
         width: 120px;
         font-size: 100%;
         padding: 20px;
         height: 20px;
         text-align: center;
          font-weight: bold;
    .tabGrid {
         width: 1024px;
         border: 3px;
    }

    Posting JSF source code instead of the generated HTML code doesn't help much in solving CSS (and JS) problems. And if you do so, better use a CSS forum instead of a JSF forum.

  • 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.

  • Tomahawk datascroller problem

    Hi ,
    I am facing a problem with tomahawk datascroller. i am enabling datascroller if i get more than 5 records. ok it is working fine . I got 8 records and displayed in two pages.i have gone to second page and removed three records.isteda of showing first page it remains in the second page(empty).please any body suggest.
    Thanks&Regards
    K.Ramu

    kodandaramu wrote:
    please its very urgentThat's your own problem. Moving pressure to us, who have completely nothing to do with your jobs and are not paid to do your job, is only dumb and rude. Have patience man. Just ask questions the smart way.

  • 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().

  • IBM RSA 6.0.1.1 - interim fix 022 / Apache Tomahawk saveState problem

    Is Tomahawk <t:saveState /> component working with IBM RSA and IBM JSF implementation. I can't get it worked. Did anyone?

    Not sure about RAD7.. I do know that the internal WAS test envionment is WAS 6.x or something .. and that the JSF jars are supposed to be part of the APP server (as opposed to deploying with your app)
    If I had to bet it probably not going to be 1.2 but thats just a guess. IBM has these JWL?? widgets I think they are throwing in RAD / RSA 7 so my guess is they won't be up to date no the lastest version of 1.2 since they probably coded these widgets a while ago not to mention they have to support a billion other integrated products .. portal..etc.etc.. so my guess is they have a hard time keeping up with the later versions (at lease from a "supported") standpoint.
    Their company line for WSAD 5.1 (about why they were stuck on 1.0 was
    something like "IBM does not have imminent plans to move to JSF 1.1 because the original implementation (shipped in WebSphere Studio 5.1.2) includes corrections to defects that are addressed in JSF 1.1. Adoption of JSF 1.1 is redundant to the code IBM has already delivered. Remember that IBM was a major code contributor to the JSF project and the corrections shipped by IBM in WebSphere Studio 5.1.2 were factored into JSF 1.1. Over the longer term as the JSF standard continues to evolve, IBM will adopt newer versions"

  • Tomahawk render problem

    Hello,
    I am using Tomahawak panelTabs in my project. The Tabs will visible according to the input present in the database..
    Now the Problem is when the First tab is invisible..... Other tabs are not in the enlarge state.... how to make them in a enlarge state even when the first tabs render = false..

    kodandaramu wrote:
    please its very urgentThat's your own problem. Moving pressure to us, who have completely nothing to do with your jobs and are not paid to do your job, is only dumb and rude. Have patience man. Just ask questions the smart way.

  • Tomahawk tree problem

    I am using the tomahawk tree. and I am using tiles. When I click the node,
    the page gets displayed, but When I see the url, I always see the last page url.
    How do I fix this ?
    thanks

    But I don't want the tree to be collapsed. its a usability issue. The reason why I care of about the url is, In one of the page I put the refresh to every 30 sec.
    So what is happening is when the user clicks the node, it will show that page, and since it has the refresh in that page, and the url shown is the last visited page, it jumps to that previous page. Which is what I am trying to solve..
    thanks

  • Custom styleClass for Tomahawk:panelTabbedPane

    When trying to apply custom css to panelTabbedPane nothing happens and I get default appearance (activeTabStyleClass, inactiveTabStyleClass, activeSubStyleClass) are allways default. How to apply custom css.
    Regards, Simy

    Check this out:
    http://wiki.apache.org/myfaces/SettingTabClasses?highlight=%28panelTabbedPane%29

  • Tomahawk facet problem: DetailStamp

    I use an inputTextarea inside a detailStamp in each row of a dataTable.
    When I edit the value of an inputTextarea and I show the detailStamp of another row I get the same value of the edited one.
    This happends for every rows.
    Any help is welcome!
    Follow the sample code of my dataTable:
    <t:dataTable styleClass="dataTable" style="margin: 10px;"
    value="#{TaskManagerBean.tasks}" var="task"
    id="data"
    rows="20"
    rowClasses="odd, even"
    preserveDataModel="false"
    preserveSort="true"
    varDetailToggler="detailToggler"
    renderedIfEmpty="false">
    <h:column>
    <f:facet name="header">
    <h:outputText value="DETAILS" />
    </f:facet>
    <h:commandLink rendered="#{detailToggler.currentDetailExpanded}" action="#{detailToggler.toggleDetail}">
    <h:outputText value="Hide" />
    </h:commandLink>
    <h:commandLink rendered="#{!detailToggler.currentDetailExpanded}" action="#{detailToggler.toggleDetail}">
    <h:outputText value="Show" />
    </h:commandLink>
    </h:column>
    <f:facet name="detailStamp">
    <t:panelGroup layout="block">
    <t:panelGroup>
    <t:outputText style="text-align:left;" value="info Wet"/>
    <t:htmlTag value="br"></t:htmlTag>
    <t:inputTextarea id="textarea" style="width:400px;height:200px;" value="#{task.infoWet}"/>
    <t:htmlTag value="br"></t:htmlTag>
    <t:commandButton value="Save" action="#{TaskManagerBean.saveInfoWet}">
    <t:updateActionListener property="#{TaskManagerBean.selectedTask}" value="#{task}" />
    </t:commandButton>
    </t:panelGroup>
    </t:panelGroup>
    </f:facet>
    </t:dataTable>

    The f:facet name="header" accepts only one child component. If you want to add multiple childs to it, group it in a h:panelGroup.

  • PanelTabbedPane and multiple form

    Hi,
    I've got a problem with tomaHawk panelTabbedPane component.
    I would like to insert a form in each panelTab child node but it isn't possible.
    <t:panelTabbedPane>
    <t:panelTab>
    <h:form id="idForm1">
    content 1
    </h:form>
    </t:panelTab>
    <t:panelTab>
    <h:form id="idForm2">
    content 2
    </h:form>
    </t:panelTab>
    </t:panelTabbedPane>
    In fact, panelTabbedPane component generate a form, and generate imbricated forms errors.
    It works with a single form enrolling the panelTabbedPane but it's problematic for validation errors because all panelTab components will be evaluated.
    Is there a mean of insert form in each panelTab with this component ?
    Thanks

    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.

  • Need panelTabbedPane examples (wizard within one tab)

    Hi All,
    I cannot find a good, substantial example of using the tomahawk panelTabbedPane UI feature. I am trying to build an application UI where the panelTabbedPane is the main navigation feature.
    One of the tabs will contain a wizard, where each page of the wizard is a different JSP. So, basically I want to submit a form on the included JSP and have the response render in place of the submitted JSP (within the context of the tab).
    Does anyone know of a good example of using panelTabbedPane in this way?
    I already tried to search the apache mail archives with little success.
    Thanks in advance,
    Matt

    The things you'd need to do are:
    Create two Conditional Build Tags: File > New > Conditional Build Tags (e.g. CSH and Main)
    Add the two Conditional Build Tag to those topics: From the Topic List pod, select the topics. Right click and select Properties. Click on the Advanced tab and select the tag in the Topic Level tag section. For example, add the CSH tag to the main help file topics and the Main tag to the CSH topics.
    In your single source layout define a Conditional Build Expression to exclude the CSH tag. This produces your main help (but not your CSH topics) complete with the image map.
    Duplicate that single source layout (right click & Duplicate Layout). Change the properties to use the exclude the Main Conditional Build Expression and write the output to a different directory. You may also want to change the name of the single source layout from "Copy of....".
    When you generate your output you can right click in the single source layout pod and click Batch Generate to generate both outputs at the same time.
    Let us know how you get on.

Maybe you are looking for

  • Platform game - disable jump when falling

    Hello everyone, I'm making a platform game in AS3. I've sorted the left, right and jumping movement of my character - apart from one jumping problem: When the up arrow key is down it sets the jump var to true. ENTER_FRAME function detects when jump =

  • One IDOC split to multiple IDOC's

    Scenario is in ECC 6.0 and SAP PI 7.0 . SAP is sending Custom IDOC to PI 7 and PI 7 is sending that to receiver system. The custom IDOC sometimes contains more than 250 segments and receiver system is not able to process IDOC's with more than 250 seg

  • Re: How to play applet without installing jmf?

    I have this similar problem that I cannot make the client machine run the player applet, and I still cannot figure that out. Did you get any feedback since then? Jack

  • H:message

    hi all, i am using <h:messages/> and it displays all the messages, but when i use <h:message for="docName"> it doesnt show messages for components.......what could be the problem? any suggestions appreciated. thanks pradeep

  • Unexpected permission "feature" in Windows 7

    I stumbled upon an unexpected permissions "feature" of Windows 7.  I was testing some ActiveX code used to write an Excel spreadsheet, and got a crash when I tried to close my file.  The same code worked just fine on my Windows XP machine, and it did