Studio Creator 2 EA - Table layout problem
Hello,
I have the following problem: when using a databound table compoment, the "Sortable" check box on the Table Layout page does not work and all colums are sortable.
How can I set only the columns I need to be sortable ?
Thank's,
Catalin Florean.
Hello again,
I tried tableColumn1.setSort(null); in the public void prerender() and public void init() calls. The result is the same each time, tableColumn1 is sortable.
I've looked into the jsp code and manually cleared the sort value as bellow:
<ui:tableColumn binding="#{RatePlanDef.tableColumn1}" headerText="Plan ID" id="tableColumn1" sort="">
<ui:staticText binding="#{RatePlanDef.staticText1}" id="staticText1" text="#{currentRow.value['RPD_PLAN_ID']}"/>
Catalin.
Similar Messages
-
Studio Creator and configurable datasources problem
At design time we've binded components to a creator-configured datasource. As a result the Studio Creators generates in a '_init' method of a session bean code like
'rowSet.setDataSourceName("java:comp/env/jdbc/mydb");'
(where 'rowSet' is a 'CachedRowSetXImpl').
So far so good.
In the next step we tried to make the datasource jndi name configurable to use this code to connect to different databases. It works fine in a web/app-server environment at run time.
But unfortunately the Studio Creator doesn't accept this code. Using something other than the shown hard-coded jndi string in a statement like the example above results in a component error...
This means that we've to use different code at design time and build/runtime? At the moment after working at the design every time we change the code (substitution using ant, e.g.: "java:comp/env/jdbc/mydb" --> getDatasourceName() ) and build the archive.
Is there is any other way to avoid this problem? We dislike such one code patching...
Regards, ThomasHi I found solution, i puted on the page a table -component (with brand new automaticly created dataprovider) , then i set properties visible= false for table, and now I can bind statictext with database field and deploy on tomcat server .
But i think it is not a elegant solution in page source i habe noused-code.
Have Any another Ideas. HELP PEOPLE !!!!
Mariuszek: I use Creator.because right now I can see result of my job and i can qickly change ideas ,
I tried with JDeveleper but i did'nt find this functionality (wich version do you prefered ?) , unfortunately i have to deploy my application on Tomcat. This is my study project, and i make this to become a Master of Techinal Univeristy ;), Deadline time is 30 th September :(
greetings -
Java Studio Creator 2 Update 1 - Problems with Calendar component
Hello,
I just made a very simple webapplication, consiting of 2 webpages. Webpage 1 has a button that sends the user to webpage 2. That works fine. When I add a calendar from the components palette, and select a date thats in 2010, I keep getting redirected to page 1 when I press the button that should send me to page 2. I don't even try to access the selected date from the calendar. When I select a date in 2009, it all works fine. I don't see any exception, not on screen, not in the server log. I'm using the Sun Application Server that comes with Studio Creator.
Kind regards,
SvenOk, I now know what my foot tastes like. Have personally verified that the calendar component in JSC 2 update 1 accepts dates (at least) 1970 - 4100. With this range you can see that there some work going on in the background but performance is adequate (a second or two delay). Considering that this is a ridiculous range the Calendar component performs well.
I dug up my old copy of JSC EA 2 and that calendar component seems to have a 9 year range with no settable minDate maxDate.
I appear to have deleted my copy of JSC EA [1] but I guess this must be where I had a poor experience of the component. I'm fairly sure this had a minDate / maxDate property and if they were set too far apart it caused heap space problems. I guess I made a mental note not to try this again and never have since. Anyway, it's irrelevant because the Calendar Component works right now and that's what counts. My apologies to all concerned. -
Site with tables layout problem
Hello,
I am hoping someone could help me with likely a stupid error
on my part. It is with a site I just started to rework;
www.starprecision.com. I am hoping you may think it is obvious as
to why:
1. There is a shift to the left for pages "home",
"company>employment opportunities" and "company>contact us"
with respect to the other pages. This, for instance, occurs in
Opera and FireFox. However not in IE7.
2. The dotted rectangular outline of the graphi appears
around the "prev" and "next" buttons when they are pressed in IE7
and FireFox but not in Opera.
3. The darned site won't even come up in Safari.
4. I want to redo the site based on a css template. Might one
suggest a starting template for this site?
Thank you for any guidance you may be able to provide.
take care,
johnFirst, fix these -
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.starprecision.com%2Femploymen t.shtml
Most of those 40 errors will be fixed by aligning your page's
doctype with
the HTML tag syntax you are using. In DW CS3 or CS4, you
could do this
easily by opening the page and then using FILE | Convert >
HTML 4.01
Transitional.
Also, you need this line - why is it commented out?
<!--<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
-->
> 1. There is a shift to the left for pages "home",
"company>employment
> opportunities" and "company>contact us" with respect
to the other pages.
> This,
> for instance, occurs in Opera and FireFox. However not
in IE7.
Add this to your CSS -
html, body { min-height:100%;margin-bottom:1px; }
It will force every page to have a vertical scrollbar, not
just those with
long content. It's the appearance of this scrollbar that is
causing the
left/right shift.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"johnarvy" <[email protected]> wrote in
message
news:[email protected]...
> Hello,
>
> I am hoping someone could help me with likely a stupid
error on my part.
> It
> is with a site I just started to rework;
www.starprecision.com. I am
> hoping
> you may think it is obvious as to why:
>
> 1. There is a shift to the left for pages "home",
"company>employment
> opportunities" and "company>contact us" with respect
to the other pages.
> This,
> for instance, occurs in Opera and FireFox. However not
in IE7.
>
> 2. The dotted rectangular outline of the graphi appears
around the "prev"
> and
> "next" buttons when they are pressed in IE7 and FireFox
but not in Opera.
>
> 3. The darned site won't even come up in Safari.
>
> 4. I want to redo the site based on a css template.
Might one suggest a
> starting template for this site?
>
> Thank you for any guidance you may be able to provide.
>
> take care,
> john
> -
Import EJB to Java Studio Creator 2?
Hey all, I'm not quite sure if this is where I want to ask this question or not. I could not find another place to so I hope here will be fine.
I've been working with EJB's and deploying them to JBoss for some time now, however I'm not to great on the UI side of web apps so I am eager to try Java Studio Creator 2. The problem I have come accross is that I can't seem to import my old EJB's into Studio Creator 2...
Any help on this would be appreciated.
Thanks in advance.Hey all, I'm not quite sure if this is where I want to ask this question or not. I could not find another place to so I hope here will be fine.
I've been working with EJB's and deploying them to JBoss for some time now, however I'm not to great on the UI side of web apps so I am eager to try Java Studio Creator 2. The problem I have come accross is that I can't seem to import my old EJB's into Studio Creator 2...
Any help on this would be appreciated.
Thanks in advance. -
Problem with Java Studio Creator and Tomcat Server
Hi Gays ,
I have problem:
here is the error from tomcat 5
com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: java.lang.RuntimeException: java.sql.SQLException: statement handle not executed: getMetaData
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java: 601)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.ja va:316)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87 )
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
if i develop application on my pc ( java studio creator with sun apps bundlled) is working perfectly,
but i migrated application to Tomcat Server ( Database the same - Oracle 10 g)
i can't show value ( as text) from datasoruce ( is in SessionBean1)
(Category-.>Subcat->Items->details( url from items table[items.jsp])
this is a working url "/faces/testpage.jsp?auk_id=31 "
( working with sun apps server , but not on Tomcat 5)
below prerender method in details.java and fragment of details.jsp
public void prerender() {
try {
String idauk = (getExternalContext().getRequestParameterMap().get("auk_id").toString());
System.out.println("wartosc auk_id " + idauk);
if (idauk != null) {
getSessionBean1().getDetailsRowSet().setObject(1,idauk);
getSessionBean1().getDetailsDataProvider().refresh();
details.jsp
xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page binding="#{testpage.page1}" id="page1">
<ui:html binding="#{testpage.html1}" id="html1">
<ui:head binding="#{testpage.head1}" id="head1">
<ui:link binding="#{testpage.link1}" id="link1" url="/resources/stylesheet.css"/>
</ui:head>
<ui:body binding="#{testpage.body1}" id="body1" style="-rave-layout: grid">
<ui:form binding="#{testpage.form1}" id="form1">
<ui:staticText binding="#{testpage.staticText1}" id="staticText1" style="position: absolute; left: 120px; top: 96px" text="#{SessionBean1.testDataProvider.value['Name']}"/>
</ui:form>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
Help People ! Any Ideas I'm stuck, why is working with Sun Servet but not with Tomcat and only just thing ?
Thanks in advance for helping me to resolve the night problem :)Hi I found solution, i puted on the page a table -component (with brand new automaticly created dataprovider) , then i set properties visible= false for table, and now I can bind statictext with database field and deploy on tomcat server .
But i think it is not a elegant solution in page source i habe noused-code.
Have Any another Ideas. HELP PEOPLE !!!!
Mariuszek: I use Creator.because right now I can see result of my job and i can qickly change ideas ,
I tried with JDeveleper but i did'nt find this functionality (wich version do you prefered ?) , unfortunately i have to deploy my application on Tomcat. This is my study project, and i make this to become a Master of Techinal Univeristy ;), Deadline time is 30 th September :(
greetings -
Problem with "Row-specific or Cascading Lists in Table Layout"
Hello, friends!
I have read article "Row-specific or Cascading Lists in Table Layout" written by Steven Davelaar. I have maked several table layouts with this technique and it worked fine.
But now I have one problem, and this problem is very strange. One of VOs for which I use this table layouts throw exception after commit changes on first LOV attribute (Deptno). First time it was error
(oracle.jbo.ReadOnlyAttrException) JBO-27008: for atribute mgrList
at oracle.jbo.AttrValException.<init>(AttrValException.java:112)
at oracle.jbo.ReadOnlyAttrException.<init>(ReadOnlyAttrException.java:40)
at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:815)
at oracle.jbo.jbotester.JboTesterUtil.setData(JboTesterUtil.java:173)
Then I setted updateable property of MgrList attribute to always and now i have this error:
oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:java.util.List with value:[{}]
at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:721)
at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:85)
I don't know why, but all worked fine yestarday. And same code works fine for another VOs. And article Test application works fine too.
Help me, please.
Thank you.<table id="OsnovaniyaPrikazEnd" model="${jhsTableBindings.OsnovaniyaPrikazEnd_1B}" detailDisclosure="${uix.eventResult.detailData}" partialRenderMode="multiple" partialTargets="messageBox _uixState " proxied="true" alternateText="${nls.NO_ROWS_FOUND}" width="50%" rendered="${bindings.newGroup_end2Iterator.findMode!='true'}">
<tableFormat tableBanding="rowBanding"/>
<contents>
<formValue value="${uix.current.rowKeyStr}" name="rowKeyStr" id="${ui:concat('OsnovaniyaPrikazEnd:rowKeyStr:',uix.current.tableIndex)}"/>
<column>
<columnFormat displayGrid="true" cellNoWrapFormat="true" columnDataFormat="numberFormat"/>
<columnHeader>
<sortableHeader model="${ctrl:createSortableHeaderModel(bindings.OsnovaniyaPrikazEnd,'Id')}" text="Id" required="yes"/>
</columnHeader>
<contents>
<messageTextInput id="${ui:concat('OsnovaniyaPrikazEnd:Id:',uix.current.tableIndex)}" model="${ui:cond(uix.current.isNewRow,null,uix.current.newGroup_end2Id)}" text="${uix.current.OsnovaniyaPrikazEndId}" name="Id" promptAndAccessKey="&Id" rows="1" maximumLength="1" columns="1">
<onSubmitValidater>
<decimal/>
</onSubmitValidater>
</messageTextInput>
</contents>
</column>
<column>
<columnFormat displayGrid="true" cellNoWrapFormat="true" columnDataFormat="numberFormat"/>
<columnHeader>
<sortableHeader model="${ctrl:createSortableHeaderModel(bindings.OsnovaniyaPrikazEnd,'IdPrikaz')}" text="IdPrikaz"/>
</columnHeader>
<contents>
<messageTextInput id="${ui:concat('OsnovaniyaPrikazEnd:IdPrikaz:',uix.current.tableIndex)}" model="${ui:cond(uix.current.isNewRow,null,uix.current.newGroup_end2IdPrikaz)}" text="${uix.current.OsnovaniyaPrikazEndIdPrikaz}" name="IdPrikaz" promptAndAccessKey="&IdPrikaz" rows="1" maximumLength="1" columns="1">
<onSubmitValidater>
<decimal/>
</onSubmitValidater>
</messageTextInput>
</contents>
</column>
<column>
<columnFormat displayGrid="true" cellNoWrapFormat="true" columnDataFormat="numberFormat"/>
<columnHeader>
<sortableHeader model="${ctrl:createSortableHeaderModel(bindings.OsnovaniyaPrikazEnd,'IdOsnovanie')}" text="На основании"/>
</columnHeader>
<contents>
<messageChoice id="${ui:concat('OsnovaniyaPrikazEnd:IdOsnovanie:',uix.current.tableIndex)}" model="${ui:cond(uix.current.isNewRow,null,uix.current.IdOsnovanie)}" name="IdOsnovanie" promptAndAccessKey="&IdOsnovanie" selectedValue="${uix.current.newGroup_end2IdOsnovanie}">
<contents childData="${jhsTableBindings.Osnovaniya_not_viewVO_1T.rangeSet}">
<option value="${uix.current.Id}" text="${uix.current.Text}"/>
</contents>
<primaryClientAction>
<firePartialAction event="whenListChanged" formSubmitted="true" unvalidated="true" targets="${ui:cond(uix.current.isNewRow,'OsnovaniyaPrikazEnd', 'OsnovaniyaPrikazEnd')}"/>
</primaryClientAction>
</messageChoice>
</contents>
</column>
<column>
<columnFormat displayGrid="true" cellNoWrapFormat="true" columnDataFormat="numberFormat"/>
<columnHeader>
<sortableHeader model="${ctrl:createSortableHeaderModel(bindings.OsnovaniyaPrikazEnd,'IdMoves')}" text="IdMoves"/>
</columnHeader>
<contents>
<messageChoice rendered="${uix.current.ListLength>'1'}" id="${ui:concat('OsnovaniyaPrikazEnd:IdMoves:',uix.current.tableIndex)}"
model="${ui:cond(uix.current.isNewRow,null,uix.current.OsnovaniyaPrikazEndIdMoves)}" name="IdMoves" promptAndAccessKey="&IdMoves"
selectedValue="${uix.current.newGroup_end2IdMoves}">
<contents childData="${uix.current.MovesList.inputValue}">
<option value="${uix.current.Id}" text="${uix.current.Fam1}"/>
</contents>
</messageChoice>
</contents>
</column>
<column>
<columnFormat displayGrid="true" columnDataFormat="iconButtonFormat"/>
<columnHeader>
<text text="Удалить?"/>
</columnHeader>
<contents>
<checkBox name="deleteRow" value="ok"/>
</contents>
</column>
</contents>
</table>
Thank you. -
Problems with the resources boundles in java studio creator 2
I try to migrate a proyect from sun java studio creator 2 early access to sun java studio creator 2 but I have a problem, the resource bundle work in creator 2 early access but doesn� work in creator 2, somebody have the same problem?
and, the most important somebody could fix the problem?
Note. sorry I�m learning englishIf I choose for SJSC2 to create JSF applications then
one, or better THE, reason is the (drag and drop)
Design editor functionality.
Using resource bundles is a MUST. So if this means I
cannot use the Design Editor in combination with
resource bundles, then I will use something else...
I think there should be a statement issued by the
SJSC2 team about this bug and what the timescale for
a decent solution wll be.
Regards,
Marcel
BTW: overall SJSC2 seems to be a good alternative to
develop an open source JSF application in a competing
timeframe.I agree. This bug is even more exacerbated by the fact that the error message is entered in the design form and generally clutters more room than was originally intented for the text. Not having i18n is a show stopper right now. Creator2 will have to fully support i18n before we can start using it. -
Class path problem in Sun Studio Creator
dear,
I have Sun Studio Creator 30 days Trail. i can't compile the EJB Classes. Is there any class path setting in the IDE?. Help me to solve the problem. the EJB class javax.ejb.* package is not found. I am using the deployment server (Sun Application Server 8.0 this could deployed the example files written for EJB. i don't guess what is the major problem.http://en.wikipedia.org/wiki/Classpath_(Java)#Setting_the_path_in_a_Manifest_file explains it well.
-
Problem installing Sun studio creator Please help
can come one please help me with this
i am trying to install sun studio creator on ubunutu but i get an error message saying unable to complete the install
the install logs shows the following error
(27-Dec-2005 17:37:35), Setup.product.install, com.sun.installer.PostInstallCoreAction, msg1, Sun Java Studio Creator Error encountered while installing Sun Java Studio Creator. Please review the log file under this directory: /home/karl/Creator
(27-Dec-2005 17:37:40), Setup.product.install, com.sun.installer.PostInstallWizardAction, err, Error setting pointbase port
(27-Dec-2005 17:37:40), Setup.product.install, com.sun.installer.PostInstallWizardAction, err, Skipping PostInstall actions due to Application Server installation failure with exitcode: -500
any help would be most appreciated
karlhttp://forum.java.sun.com/thread.jspa?threadID=5308609
-
Problem installing sun java studio creator
I have downloaded the installable for sun java studio creator 2 update 1 for windows platform. I am unable to install the package. Following is the error Iog I get, when used in debug mode(Notice the last part ErrOut indicating the error). What is going wrong ?
file type: 0
file id: 0
length: 178
offset: 319579
file name: instructions.txt
file type: 5
file id: 1
length: 1009
offset: 319757
file name: Verify.jar
file type: 2
file id: 2
length: 729
offset: 320766
file name: launch.txt
file type: 4
file id: 3
length: 16766119
offset: 321495
file name: Windows-Sun-1.4.2_04.exe
file type: 6
file id: 4
length: 249333158
offset: 17087614
file name: windows.jar
Executing launch script command: "C:\DOCUME~1\JATINK~1\LOCALS~1\Temp\LRE5.tmp/bin\java.exe" -cp "";"C:\DOCUME~1\JATINK~1\LOCALS~1\Temp\LRE6.tmp\windows.jar";"" -Dtemp.dir="C:\DOCUME~1\JATINK~1\LOCALS~1\Temp" -Dis.jvm.home="C:\DOCUME~1\JATINK~1\LOCALS~1\Temp\LRE5.tmp" -Dis.jvm.temp="1" -Dis.media.home="C:\DOCUME~1\JATINK~1\LOCALS~1\Temp\LRE6.tmp\windows.jar" -Dis.launcher.file="D:\installables\Java Studio Creator\creator-2_1-windows-ml.exe" -Dis.jvm.file="C:\DOCUME~1\JATINK~1\LOCALS~1\Temp\LRE5.tmp\jvm" -Dis.external.home="D:\installables\Java Studio Creator" -Xms20m -Xmx60m run in working directory D:\installables\Java Studio Creator
Output from the launch script execution
StdOut:
ErrOut:
Assertion failed: errno == 0 && count == (size_t) size, file ../../../src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp, line 506
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.Hi Soumik,
Here is the URL to the Sun Java Studio Creator Forum: http://swforum.sun.com/jive/forum.jspa?forumID=123
I apologize for missing out on giving the link in my previous post.
Thanks
Giri :-) -
Problem in implementing serial number in table layout jdev 10.1.3.3
Hi all, i am trying to add and display the serial number of records in a transient field in a web page as part of a table. I 've tries the following code:
public Number getAa() {
ApplicationModule am=this.getApplicationModule();
ViewObject vo=am.findViewObject("--viewobject name--");
return new Number(vo.getCurrentRowIndex()+1);
It works perfectly in form layout but in table layout it does not refresh the index in each record. what is wrong?Hi,
a table doesn't set each row as current when rendering the UI. It just iterates over the collection of rows. If the row number is transient anyway, then you can try and use the statusVar property of a table. Give it a vaulue (e.g. "var") and then reference it from an output text in a column you add to the able as #{var.index}
Frank -
JavaScript problems with JSF or Studio Creator
Hi All,
Studio Creator has generated this code
<h:form binding="#{general$forgotpassword0.form1}" id="form1">
<h:inputText binding="#{general$forgotpassword0.txtLogin}" id="txtLogin" styleClass="frmObjects" />
<h:commandButton action="#{general$forgotpassword0.btnSubmit_action}" binding="#{general$forgotpassword0.btnSubmit}"
id="btnSubmit" onclick="alert('hello'); return checkLogin();" styleClass="frmObjects1" title="btnSubmit" value="Continue"/>
</h:form>
now after compilation, I get form1:txtLogin for txtLogin
Now how can I perform client side JavaScript Validation on form1:txtLogin??Thanks
SudhakarHi Sudhakar,
There are code clips available which demonstrate how to make use of javascript. These are available at:
http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/codeclips.html
The codeclips that would be of interest to you in particular are titled Set focus, Select on Mouse over and Javascript template. Using these you should be able to do the client side validation using javascript.
Hope this helps
Cheers
Giri :-)
Creator Team -
Problem with Studio Creator projects with WinXP non-admin account
Hi All.
I can run Studio Creator projects when logged onto Windows XP as an administrator but not when logged on with a limited account.
Here are messages I get when using a limited account:
Output windows displays the following as it continuously tries to start the server after clicking the "Run Main Project" toolbar button
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
pluto-hack-web-xml-run:
portlet-container-deploy:
jsCreatorDist:
run-deploy:
Starting server localhost:25848
C:\Program Files\Sun\Creator2_1\SunAppServer8\bin\asadmin.bat start-domain --domaindir C:\Program Files\Sun\Creator2_1\SunAppServer8\domains\ creator
Starting server localhost:25848
I later get a popup window stating the the "Sun Java System Application Server 8.2 could not start with suggestions to check port conflict or bad config in domain.xml or corrupted deployment application
Any help is greatly appreciated.
New to Java :-)I don't believe that you can run the AS that way.
But, anyway, this questions should have been askeed in the JSC forum:
http://forum.java.sun.com/forum.jspa?forumID=881
(or the AS forum) -
Webboard project using sun java studio creator 2
I would like to create a simple webboard using Sun Java Studio Creator 2. In the View Topic page, there are a subject and a message creator by the owner of the subject. Then there are messages reply by others. I use Table component to list all the messages. I put a Static Text and a Text Area component in a group panel. And put a group panel in a Table Column. I bind the the reply message with the Text Area.
My problems are...
1. The Text Area have the same value for every row.
2. I changed the Text Area to Static Text. The binding is successful. However, it cannot display multiline message. Please suggest a component that is more suitable to bind the variable lines message. I would like each row to have different height depending on the length of the message.
My jsp is as follows.
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page binding="#{ReadTopic.page1}" id="page1">
<ui:html binding="#{ReadTopic.html1}" id="html1">
<ui:head binding="#{ReadTopic.head1}" id="head1">
<ui:link binding="#{ReadTopic.link1}" id="link1" url="/resources/stylesheet.css"/>
</ui:head>
<ui:body binding="#{ReadTopic.body1}" id="body1" style="-rave-layout: grid">
<ui:form binding="#{ReadTopic.form1}" id="form1">
<ui:staticText binding="#{ReadTopic.staticText1}" id="staticText1" style="left: 120px; top: 24px; position: absolute"/>
<ui:messageGroup binding="#{ReadTopic.messageGroup1}" id="messageGroup1" style="position: absolute; left: 432px; top: 24px"/>
<ui:staticText binding="#{ReadTopic.staticText5}" id="staticText5" style="left: 120px; top: 72px; position: absolute" text="#{ReadTopic.topicGetNameDataProvider.value['topic.Owner']}"/>
<ui:staticText binding="#{ReadTopic.staticText6}" id="staticText6" style="left: 120px; top: 120px; position: absolute" text="#{ReadTopic.topicGetNameDataProvider.value['topic.Subject']}"/>
<ui:label binding="#{ReadTopic.label1}" id="label1" style="position: absolute; left: 24px; top: 24px" text="Topic No:"/>
<ui:label binding="#{ReadTopic.label2}" id="label2" style="position: absolute; left: 24px; top: 72px" text="Owner:"/>
<ui:label binding="#{ReadTopic.label3}" id="label3" style="position: absolute; left: 24px; top: 120px" text="Subject:"/>
<ui:button action="#{ReadTopic.button1_action}" binding="#{ReadTopic.button1}" id="button1"
style="left: 23px; top: 168px; position: absolute" text="Reply"/>
<ui:table augmentTitle="false" binding="#{ReadTopic.table2}" id="table2" style="left: 24px; top: 216px; position: absolute; width: 0px" width="0">
<script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
* Toggle the table preferences panel open or closed
function togglePreferencesPanel() {
var table = document.getElementById("form1:table2");
table.toggleTblePreferencesPanel();
/* ----- Functions for Filter Panel ----- */
* Return true if the filter menu has actually changed,
* so the corresponding event should be allowed to continue.
function filterMenuChanged() {
var table = document.getElementById("form1:table2");
return table.filterMenuChanged();
* Toggle the custom filter panel (if any) open or closed.
function toggleFilterPanel() {
var table = document.getElementById("form1:table2");
return table.toggleTableFilterPanel();
/* ----- Functions for Table Actions ----- */
* Initialize all rows of the table when the state
* of selected rows changes.
function initAllRows() {
var table = document.getElementById("form1:table2");
table.initAllRows();
* Set the selected state for the given row groups
* displayed in the table. This functionality requires
* the 'selectId' of the tableColumn to be set.
* @param rowGroupId HTML element id of the tableRowGroup component
* @param selected Flag indicating whether components should be selected
function selectGroupRows(rowGroupId, selected) {
var table = document.getElementById("form1:table2");
table.selectGroupRows(rowGroupId, selected);
* Disable all table actions if no rows have been selected.
function disableActions() {
// Determine whether any rows are currently selected
var table = document.getElementById("form1:table2");
var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
// Set disabled state for top actions
document.getElementById("form1:table2:tableActionsTop:deleteTop").setDisabled(disabled);
// Set disabled state for bottom actions
document.getElementById("form1:table2:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
<ui:tableRowGroup binding="#{ReadTopic.tableRowGroup2}" id="tableRowGroup2" rows="10"
sourceData="#{ReadTopic.topicdetailDataProvider}" sourceVar="currentRow">
<ui:tableColumn binding="#{ReadTopic.tableColumn4}" id="tableColumn4" width="80%">
<ui:panelGroup binding="#{ReadTopic.groupPanel1}" id="groupPanel1" style="height: 94px; width: 238px">
<h:panelGrid binding="#{ReadTopic.gridPanel1}" border="0" columns="2" id="gridPanel1" width="100%">
<ui:label binding="#{ReadTopic.label4}" id="label4" text="No:"/>
<ui:staticText binding="#{ReadTopic.staticText11}" id="staticText11" text="#{currentRow.value['topicdetail.No']}"/>
<ui:label binding="#{ReadTopic.label5}" id="label5" text="Name:"/>
<ui:staticText binding="#{ReadTopic.staticText12}" id="staticText12" text="#{currentRow.value['topicdetail.Name']}"/>
<ui:label binding="#{ReadTopic.label6}" id="label6" text="ข้อความ:"/>
<ui:staticText binding="#{ReadTopic.staticText10}" id="staticText10" text="#{currentRow.value['topicdetail.Message']}"/>
</h:panelGrid>
</ui:panelGroup>
</ui:tableColumn>
</ui:tableRowGroup>
</ui:table>
</ui:form>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>Modify URL-PATTERN for your Faces Servlet from /faces/* to *.abc in web.xml
change
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>to
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.abc</url-pattern>
</servlet-mapping>hope that might help :)
REGARDS,
RaHuL
Maybe you are looking for
-
On a PC I would just open Roxio and copy disc....so simple.
-
Subject: Choice element in JAXB 1.x
Recently i ran into problem of having too many elements in choice tag. JAXB doesn't throw exception, but generated files doesn't comply Java. While compilation it throws "code too large" exception. On removing few i can manage, but i am looking for l
-
Faxing adobe pdf forms using actions in CRM service process
Hi experts, Does anybody has experience in sending adobe PDF forms as a fax using actions in CRM service processes? Currently I use this by implementing a PPF BAdI, but what else configuration, software and hardware requirements I need to make faxing
-
13 GB of Other on brand new 5S
I upgraded my wife from a 4 to a 5S yesterday. It took a couple tries at removing enough music to allow the old phone to be restored on the new phone with the new Apple apps that come preinstalled. When I got enough removed I have 13 gb's of Other t
-
Disable duplex printing on Canon MX 410
Hi, I have a canon MX 410 printer and I can not find how to disable the duplex printing. So far I have tried to change the settings on the printing preferances (duplux printing is unchecked). to update the driver to the latest from http://www.usa.can