-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3919508
By: nobody
I'm quite new to all this ZK Javax stuff and also not very experienced with Java Classes, now, I have to build a screen where the user press the name of a table that comes from the DB and the table structure is "drawn" on the screen, I don't know the column names in advance, nor the size of the table. I can get in Java the column amount and the row count, but What is the best way to build something like that? I don't have a structure and in the EL you can call functions so I can't get rows dynamically right?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3921569
By: vman974
According to me you should create your table from java and not Zscript.
For exemple: you make a function who takes as parameter the number of column and row and then you create your component dynamicly.
In your Zul page you define a window using your java classes
ex: <window title="table" id="tableDlg" use="com.MyComposantZK.TableDB"> </window>
and in your java classes you define you component
ex:
public class TableDB extends Window
{
//this function will be call at the rendering of the zul page
public void onCreate()
{
// we get the component who will have your table (you will use it to setParent
of your component
Window myWin=(Window) getFellow("tableDlg");
// call of function to know how much row or column you have and create your
component table.
...
myComponent.setParent(myWin);
}
}
I Hope it will help you.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3921887
By: nobody
call Executions.getCurrent().forwar(forwardPath) then happened execption as
follows:
java.lang.IllegalStateException: Use sendRedirect instead when processing user's request
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3924196
By: tomyeh
forward must be called at the very beginning and not in an event listener. If still in doubt, post more complete codes so we can really help.
@sam
please open another thread to ask question :)
Asked: 2006-09-18 21:35:42 +0800
Seen: 240 times
Last updated: Jun 11 '11