Messages posted by sam.xiao
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: sam.xiao  XML
Profile for sam.xiao -> Messages posted by sam.xiao [41] Go to Page: 1, 2, 3 Next 
Author Message
we actually experience the same issue here. for unsuccessful download, did you use Firefox? can you try it with IE 7? Thanks.
You want to create a template like this:

template.xhtml:
Code:
 ...
 <ice:outputFormat value="#{format}">
 		<f:param value="#{input}"/>
 </ice:outputFormat>
 ...
 


then the page is like this:

page.xhtml:
Code:
 ...
 <ui:composition
         template="template.xhtml"
         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:ice="http://www.icesoft.com/icefaces/component"
         xmlns:ui="http://java.sun.com/jsf/facelets" >
 
 		<ui:param name="format" value="#{bean.format}" />
 		<ui:param name="input" value="#{bean.input}" />
 
 </ui:composition>
 ...
 
I am not sure if I understand correctly. When you say custom facelets tag, do you mean ice:outputFormat? can you elaborate on your use of ice:outputFormat?
Hi Sven,

Here is an example of typical use of ice:outputFormat:

<ice:outputFormat value="{0} is displayed here">
<f:param value="#{bean.input}" />
</ice:outputFormat>

is rendered as:

hello is displayed here

You need to make sure the value of ice:outputFormat is not null.
You can use ice:outputText to do it.

<ice:outputText escape="false" value="<br></br>" />
can you try bind "rendered" attribute to the same bean property as "visible" that should work
Did you try <ice:outputText escape="false" value="TEXT WITH HTML"/>?
It will be helpful if you could post an example of your page including the "actions" link in header and the problematic command sort header.
you may want to store the user id somewhere inside the bean when it's populated. Do you have any particular reason passing it from page to page?
You are right. This doesn't work for IE due to the fact that you are not allowed to change "disabled" style for IE although I can see the correct style class has been applied. If you really really need this function, you can probably try to set the "disabled" back to false and use "readonly" and some custom styles.
It seems to work fine for me. When disable button is clicked, anything inside input box appeared disabled and in red color.

on the page:
Code:
 <link href="./xmlhttp/css/xp/xp.css" rel="stylesheet" type="text/css" />
 <link href="./custom.css" rel="stylesheet" type="text/css" />
 ......
 <ice:selectInputDate disabled="#{bean.disabledCalendar}" renderAsPopup="true"
 styleClass="custom"/>
 <ice:commandButton value="Disable Calendar" actionListener="#{bean.disableCalendar}" partialSubmit="true"/>
 


custom.css:
Code:
 .customInput-dis{
    color:red;
 }
 


Did you overwrite all corresponding style classes? icefaces handles customized style class by appending the new class name at the end of default ones which are generated from the base style classname you passed in. e.g. select input date has the default style class name "iceSelInpDate" icefaces generates the child elements' style classes from this name, like "iceSelInpDateMonthYear" and "iceSelInpDateMonthYear-dis". When overwriting the default style by: <ice:selectInputDate styleClass="custom" .../>, icefaces will generate all child style class names from "custom" and take a look at the markup, you will find "iceSelInpDateMonthYear" becomes "iceSelInpDateMonthYear customSelInpDateMonthYear"

Therefore, you may want to include child element style class if you want to overwrite specific element. You can provide me more information like which part of text you want to change so that I can better help you.

for some reason, firebug doesn't show the name space but if you right click on the page and select "view page source", you will see it. Regarding the closing tags, you cannot see them in collapse mode. Try expanding those tags inside firebug and you will see the closing tags at the end.

Golgoth wrote:
Yes, I'm using Firebug.

Here the complete page of my last test :
Code:
 <?xml version="1.0" encoding="UTF-8"?>
 <html xmlns:h="http://java.sun.com/jsf/html"
 	xmlns:f="http://java.sun.com/jsf/core"
 	xmlns:ice="http://www.icesoft.com/icefaces/component">
 <head>
 <meta content="application/xhtml+xml;charset=UTF-8"
 	http-equiv="Content-Type" />
 <ice:outputDeclaration doctypeRoot="HTML"
 	doctypePublic="-//W3C//DTD XHTML 1.0 Transitional//EN"
 	doctypeSystem="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
 </head>
 <body>
 <h3>Test</h3>
 <f:view>
 	<ice:outputLabel value="Label" />
 </f:view>
 </body>
 </html>
 


Please, try it ! 
I am wondering if you viewed the source from Firebug or from the browser's "view page source"?
and where exactly did you put <ice:outputDecalration>, I didn't it in the jsp page you posted.
wondering if you could post some simple war file of application as it's expected to see the view id in front the form id in the generated markup.

 
Profile for sam.xiao -> Messages posted by sam.xiao [41] Go to Page: 1, 2, 3 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team