voyent
Messages posted by: gregory_m  XML
Profile for gregory_m -> Messages posted by gregory_m [130] Go to Page: 1, 2, 3, 4, 5, 6, 7, 8, 9 Next 
Author Message
The TabChangeListener is associated with the PanelTabSet and not the individual PanelTabs.

The TabChangeEvent provides your TabChangeListener with the old and new TabIndex. Which will allow you to perform custom operations for specific PanelTabs based on the TabIndex.
The simple tree example has not been tested against the myFaces RI.

Could you try removing the myfaces listener from your web.xml file ?


<!--
<listener>
<listener-class>
org.apache.myfaces.webapp.StartupServletContextListener
</listener-class>
</listener>
-->
 


Thanks,

-- Greg --
Support for multiple modal popups on a single page was added in the latest release of ICEfaces (1.5.2).

Which version of ICEfaces are you using ?

Thanks,

-- Greg --
Hi,

Define a TabChangeListener for your panelTabSet.

Have your backing bean implement the TabChangeListener interface.

The TabChangeListener interface defines a single method named processTabChange.

Code:
 import javax.faces.event.AbortProcessingException;
 import com.icesoft.faces.component.paneltabset.PanelTabSet;
 import com.icesoft.faces.component.paneltabset.TabChangeEvent;
 import com.icesoft.faces.component.paneltabset.TabChangeListener;
 
 public class Bean implements TabChangeListener {
 ...
 
     /**
      * Called when the tab focus changes.
      *
      * @param tabChangeEvent
      * @throws AbortProcessingException
      */
     public void processTabChange(TabChangeEvent tabChangeEvent)
             throws AbortProcessingException {
             System.out.println("processTabChange");
             ... 
     }
 
 }
 


In your page use a method binding to set the tabChangeListener.

Code:
         <ice:panelTabSet binding="#{bean.tabSet}"
             selectedIndex="1"
             tabChangeListener="#{bean.processTabChange}">
 


We also have a tabSet tutorial that you may find interesting.
http://facestutorials.icefaces.org/tutorial/tabset-tutorial.html

I hope this helps.

Thanks,

-- Greg --
Hello,

I've attached a simple dynamic tree web application for you.

You should also take a look at the ICEfaces tree tutorial.

http://facestutorials.icefaces.org/tutorial/tree-tutorial.html

Thanks,

-- Greg --
Yes, it is possible to use a commandLink instead of a commandButton.

It should be a fairly simple change.

Snippet using a commandButton:
Code:
         <ice:commandButton id="addButton" value="Add Tab"
                            actionListener="#{tabbedPaneExample.addTab}"/>
 


Snippet using a commandLink:
Code:
         <ice:commandLink id="addLink" value="Add Tab"
                            actionListener="#{tabbedPaneExample.addTab}"/>
 


Thanks,

-- Greg --
Hi Giuseppe,

Currently, the selectInputDate does not support the disabling of specific dates.

You may want to consider using a custom validator to prevent the user from selecting certain dates.

I've attached an example that uses custom validation to prevent the user from selecting a date that is a "Sunday".

Thanks,

-- Greg --

Try overriding the tabPanel styleclass named "iceTabSet".

This can be done in your application by;
1) creating a stylesheet in your applications web directory. [ tabset.css ]
2) add the .iceTabSet styleClass to your stylesheet.
Code:
 .iceTabSet {
     height: 100%;
 }
 

3) add your stylesheet link to your page.
Code:
 <f:view xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:ice="http://www.icesoft.com/icefaces/component">
     <html>
     <head>
     <link href="./xmlhttp/css/xp/xp.css" rel="stylesheet" type="text/css" />
     [b]<link href="./tabset.css" rel="stylesheet" type="text/css" />[/b]        
     </head>
     <body>
     ...
 


Thanks,

-- Greg --
hi,

You can override the default styleClass for the popup calendar textbox.

The styleClass to override is named "iceCalInput" which is defined in the xp.css and royale.css files that are included with ICEfaces.

To override the styleClass in your application;

1) create a stylesheet in your applications web directory. [ calendar.css ]
2) add your customized ".iceCalInput" styleclass to your stylesheet.
Code:
 .iceCalInput{
     background-color:cyan;
     width: 250px;
 }
 

3) add the css link to your page.
Code:
 <f:view xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:ice="http://www.icesoft.com/icefaces/component">
     <html>
     <head>
     <link href="./xmlhttp/css/xp/xp.css" rel="stylesheet" type="text/css" />     
     <link href="./calendar.css" rel="stylesheet" type="text/css" />             
     </head>
     <body>
        ...
 


Thanks,

-- Greg --
Hi zark,

You could try using a PanelPopup with server initiated rendering.

Check out the attached project.

Thanks,

-- Greg --
It sounds like the browser may have cached the 1.5.1 JavaScript which will not work with a 1.5.2 application.

Try reloading the page (shift-reload) or clearing your browser cache.
Hi Fridi,

We have a set of tutorials on the icefaces.org site.

http://www.icefaces.org/main/resources/tutorials.iface

The tutorials are not specific to Eclipse, but we do have a tools bundle for Eclipse.

The ICEfaces-v1.5.1.1-Eclipse.zip bundle can be downloaded from icefaces.org.

http://www.icefaces.org/main/downloads/os-downloads.iface

Thanks,

-- Greg --
Hello awall,

This issue will be resolved in the next release which should be available by the end of this week.

In regards to "read only" inputText. An ice:inputText can be effectively rendered as read only by setting the disabled attribute to true.

Code:
 <ice:inputText id="test1" disabled="true" value="This text is read only" />
 


Thanks,

-- Greg --
Try using the numeric ASCII codes for HTML.

Code:
 &#246;   ö    latin small letter o with diaeresis
 &#228;   ä    latin small letter a with diaeresis
 &#252;   ü    latin small letter u with diaeresis
 


I hope this helps.

Thanks,

-- Greg --
Please check the rendered output of your page to make sure your style sheet is referenced after the icefaces style sheet ?

Code:
 <head>
 <link href="./xmlhttp/css/xp/xp.css" type="text/css" rel="stylesheet"/>
 </link>
 <link type="text/css" rel="stylesheet" href="./resources/stylesheet.css"/>
 </link>
 <meta name="icefaces" content="Rendered by ICEFacesâ?¢ D2D"/>
 <script src="/component-showcase/xmlhttp/icefaces-d2d.js" language="javascript"/>
 </script>
 <script src="/component-showcase/xmlhttp/ice-extras.js" language="javascript"/>
 </script>
 </head>
 


Also, you could try placing the link tag in the head of your page instead of using the ice:outputStyle.

Code:
 <link type="text/css" rel="stylesheet" href="./resources/stylesheet.css"/>
 </link>
 


Thanks,

-- Greg --
 
Profile for gregory_m -> Messages posted by gregory_m [130] Go to Page: 1, 2, 3, 4, 5, 6, 7, 8, 9 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team