Dynamic HTML page with Wicket?

2014-07-28 Thread eaglei22
Hello,

I have an old application to re-write. It is a provisioning tool for
different companies, and each company can create their own main page which
tells a little about themselves, contact information etc.. This
functionality is done by using a text box, and letting the user write free
html, and then the code just renders the html.. 

If I wanted to do this with Wicket, what would be the most efficient way? Is
it better to not use Wicket to do this? And use PrintWriter? Or is there a
better way to have the user create the html, and store it to a file, and
then feed it in to let Wicket create the page each time?

Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dynamic-HTML-page-with-Wicket-tp4666769.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Dynamic HTML page with Wicket?

2014-07-28 Thread eaglei22
great. Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dynamic-HTML-page-with-Wicket-tp4666769p4666778.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Pom.xml errors in Wicket

2014-07-08 Thread eaglei22
Hello, I am getting an error:

Missing artifact org.apache.wicket:wicket:pom:6.15.0:compile


This is when I try to update to 6.15.0 from 1.5.5 .. I also get it for
slf4j.. Here are the two errors together:

7/8/14 11:01:51 AM CDT: Missing artifact
org.apache.wicket:wicket:pom:6.15.0:compile
7/8/14 11:01:51 AM CDT: Missing artifact
org.slf4j:slf4j-api:jar:1.6.4:compile

I can't understand why. It does this even if I change it to 6.12.0 for
instance. What can I do to troubleshoot this, I don't get what would cause
this issue. Here is my pom..

properties
wicket.version6.15.0/wicket.version
jetty.version7.4.0.v20110414/jetty.version
log4j.version1.2.16/log4j.version
slf4j.version1.6.1/slf4j.version
/properties

dependencies


dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version${wicket.version}/version
typepom/type
/dependency
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-datetime/artifactId
version${wicket.version}/version
/dependency
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-extensions/artifactId
version${wicket.version}/version
/dependency
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-ioc/artifactId
version${wicket.version}/version
/dependency
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-spring/artifactId
version${wicket.version}/version
/dependency



dependency
groupIdlog4j/groupId
artifactIdlog4j/artifactId
version1.2.16/version
/dependency
dependency
groupIdorg.slf4j/groupId
artifactIdslf4j-log4j12/artifactId
version${slf4j.version}/version
/dependency
dependency
groupIdorg.slf4j/groupId
artifactIdjcl-over-slf4j/artifactId
version${slf4j.version}/version
typejar/type
scopecompile/scope
/dependency


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Pom-xml-errors-in-Wicket-tp4666492.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Pom.xml errors in Wicket

2014-07-08 Thread eaglei22
I added those, and I still get this:

7/8/14 1:01:35 PM CDT: Refreshing [/sampleproject/pom.xml]
7/8/14 1:01:35 PM CDT: [WARN] Missing POM for
org.apache.wicket:wicket:pom:6.15.0
7/8/14 1:01:35 PM CDT: Downloading
http://ept-dev-app01.ca.boeing.com:8080/artifactory/repo/org/slf4j/slf4j-api/${slf4j-api.version}/slf4j-api-${slf4j-api.version}.pom
7/8/14 1:01:35 PM CDT: Downloading
http://ept-dev-app01.ca.boeing.com:8080/artifactory/repo/org/slf4j/slf4j-api/${slf4j-api.version}/slf4j-api-${slf4j-api.version}.pom
7/8/14 1:01:36 PM CDT: Downloading
http://ept-dev-app01.ca.boeing.com:8080/artifactory/repo/org/slf4j/slf4j-api/${slf4j-api.version}/slf4j-api-${slf4j-api.version}.pom
7/8/14 1:01:36 PM CDT: [WARN] Missing POM for
org.slf4j:slf4j-api:jar:${slf4j-api.version}
7/8/14 1:01:36 PM CDT: Downloading
http://ept-dev-app01.ca.boeing.com:8080/artifactory/repo/org/slf4j/slf4j-api/${slf4j-api.version}/slf4j-api-${slf4j-api.version}.jar
7/8/14 1:01:36 PM CDT: Downloading
http://ept-dev-app01.ca.boeing.com:8080/artifactory/repo/org/slf4j/slf4j-api/${slf4j-api.version}/slf4j-api-${slf4j-api.version}.jar
7/8/14 1:01:36 PM CDT: Downloading
http://ept-dev-app01.ca.boeing.com:8080/artifactory/repo/org/slf4j/slf4j-api/${slf4j-api.version}/slf4j-api-${slf4j-api.version}.jar
7/8/14 1:01:36 PM CDT: Missing artifact
org.apache.wicket:wicket:pom:6.15.0:compile
7/8/14 1:01:36 PM CDT: Missing artifact
org.slf4j:slf4j-api:jar:${slf4j-api.version}:compile
7/8/14 1:01:37 PM CDT: Downloading
http://ept-dev-app01.ca.boeing.com:8080/artifactory/repo/com/boeing/myaccess/ui/7.1-M2-SNAPSHOT/ui-7.1-M2-SNAPSHOT.pom
7/8/14 1:01:37 PM CDT: Downloading
http://ept-dev-app01.ca.boeing.com:8080/artifactory/repo/com/boeing/myaccess/ui/7.1-M2-SNAPSHOT/ui-7.1-M2-SNAPSHOT.pom
7/8/14 1:01:37 PM CDT: Downloading
http://ept-dev-app01.ca.boeing.com:8080/artifactory/repo/com/boeing/myaccess/ui/7.1-M2-SNAPSHOT/ui-7.1-M2-SNAPSHOT.pom
7/8/14 1:01:38 PM CDT: Maven Builder: AUTO_BUILD 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Pom-xml-errors-in-Wicket-tp4666492p4666495.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Pom.xml errors in Wicket

2014-07-08 Thread eaglei22
Actually I took out:

dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version${wicket.version}/version
typepom/type
/dependency

Which I had left in when adding the wicket-core.. now I just get the 

Missing artifact org.slf4j:slf4j-api:jar:${slf4j-api.version}:compile


dependency
groupIdlog4j/groupId
artifactIdlog4j/artifactId
version1.2.16/version
/dependency
dependency
groupIdorg.slf4j/groupId
artifactIdslf4j-log4j12/artifactId
version${slf4j.version}/version
/dependency
dependency
groupIdorg.slf4j/groupId
artifactIdjcl-over-slf4j/artifactId
version${slf4j.version}/version
typejar/type
scopecompile/scope
/dependency
 dependency
groupIdorg.slf4j/groupId
artifactIdslf4j-api/artifactId
version${slf4j-api.version}/version
/dependency 


Is there one I should take out?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Pom-xml-errors-in-Wicket-tp4666492p4666496.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Pom.xml errors in Wicket

2014-07-08 Thread eaglei22
I don't understand why it keeps asking for it. If I take it out it's still
looking for it, and when I change to slf4j.version1.6.4/slf4j.version

I get more errors:

7/8/14 1:15:36 PM CDT: Missing artifact
org.slf4j:slf4j-api:jar:${slf4j-api.version}:compile
7/8/14 1:15:36 PM CDT: Missing artifact
org.slf4j:slf4j-log4j12:jar:1.6.4:compile
7/8/14 1:15:36 PM CDT: Missing artifact
org.slf4j:jcl-over-slf4j:jar:1.6.4:compile

instead of:

slf4j.version1.6.1/slf4j.version
7/8/14 1:14:58 PM CDT: Missing artifact
org.slf4j:slf4j-api:jar:1.6.4:compile

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Pom-xml-errors-in-Wicket-tp4666492p4666499.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Pom.xml errors in Wicket

2014-07-08 Thread eaglei22
Ah okay, sorry about that. That def makes more sense now. I wasn't 100% sure
how to even read the pom but it makes a lot more sense now.

I still get the error:

Missing artifact org.slf4j:slf4j-api:jar:1.6.4:compile

using:

properties
wicket.version6.15.0/wicket.version
jetty.version7.4.0.v20110414/jetty.version
log4j.version1.2.16/log4j.version
slf4j.version1.6.1/slf4j.version
slf4j-api.version1.6.4/slf4j-api.version
/properties

dependencies



 dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-core/artifactId
version${wicket.version}/version
/dependency 
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-datetime/artifactId
version${wicket.version}/version
/dependency
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-extensions/artifactId
version${wicket.version}/version
/dependency
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-ioc/artifactId
version${wicket.version}/version
/dependency
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-spring/artifactId
version${wicket.version}/version
/dependency



dependency
groupIdlog4j/groupId
artifactIdlog4j/artifactId
version1.2.16/version
/dependency
dependency
groupIdorg.slf4j/groupId
artifactIdslf4j-log4j12/artifactId
version${slf4j.version}/version
/dependency
dependency
groupIdorg.slf4j/groupId
artifactIdjcl-over-slf4j/artifactId
version${slf4j.version}/version
typejar/type
scopecompile/scope
/dependency
dependency
groupIdorg.slf4j/groupId
artifactIdslf4j-api/artifactId
version${slf4j-api.version}/version
scopecompile/scope
/dependency 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Pom-xml-errors-in-Wicket-tp4666492p4666501.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket version 6.15 referring to older Jar

2014-07-08 Thread eaglei22
I have gotten all the latest jars installed for the Wicket 6.15. I can verify
this in the Maven Dependencies directory. 

For some reason, I feel it is still pointing to an older version of Wicket.
I am getting strange errors with the add method from the MarkupContainer. 

Using the quick-start example, in the HomePage class I am getting an error
with:

add(new Label(message, If you see this message wicket is properly
configured and running));

The error is:
The method add(Component[]) in the type MarkupContainer is not applicable
for the arguments (Label)

Not sure why it is using Component[] as a argument and not Component...
childs 

as I am used to. 


I am using Eclipse. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-version-6-15-referring-to-older-Jar-tp4666502.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DiskDataStore errors in production

2014-05-15 Thread eaglei22
Hi, my application in production often gets this error:
May 14 09:12:27 ERROR
DiskDataStore-/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/4729/2939/909EAC3343856968BA7B1864B71CEA85/data
(Too many open files)
java.io.FileNotFoundException:
/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/4729/2939/909EAC3343856968BA7B1864B71CEA85/data
(Too many open files)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.init(RandomAccessFile.java:233)
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:425)
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:343)
at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:181)
at
org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:228)
at
org.apache.wicket.pageStore.DefaultPageStore.storePageData(DefaultPageStore.java:120)
at
org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:154)
at
org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:412)
at
org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:181)




and now I am getting this error for every page opened making the log file
extremely large:

May 14 11:36:31 WARN  DiskDataStore-Cannot save page with id '866' because
the data file cannot be opened.
May 14 11:36:31 ERROR
DiskDataStore-/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data
(Permission denied)
java.io.FileNotFoundException:
/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data
(Permission denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.init(RandomAccessFile.java:233)
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:425)
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:343)
at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:181)
at
org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:355)
at java.lang.Thread.run(Thread.java:722)
May 14 11:36:31 WARN  DiskDataStore-Cannot save page with id '0' because the
data file cannot be opened.
May 14 11:36:32 ERROR
DiskDataStore-/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data
(Permission denied)
java.io.FileNotFoundException:
/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data
(Permission denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.init(RandomAccessFile.java:233)
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:425)
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:343)
at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:181)
at
org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:355)
at java.lang.Thread.run(Thread.java:722)
May 14 11:36:32 WARN  DiskDataStore-Cannot save page with id '0' because the
data file cannot be opened.





What can be causing these errors? is this more of a Tomcat thing or Wicket?

Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DiskDataStore-errors-in-production-tp4665839.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DiskDataStore errors in production

2014-05-15 Thread eaglei22
Hi, my application in production often gets this error: 
May 14 09:12:27 ERROR
DiskDataStore-/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/4729/2939/909EAC3343856968BA7B1864B71CEA85/data
(Too many open files) 
java.io.FileNotFoundException:
/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/4729/2939/909EAC3343856968BA7B1864B71CEA85/data
(Too many open files) 
at java.io.RandomAccessFile.open(Native Method) 
at java.io.RandomAccessFile.init(RandomAccessFile.java:233) 
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:425)
 
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:343)
 
at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:181) 
at
org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:228)
 
at
org.apache.wicket.pageStore.DefaultPageStore.storePageData(DefaultPageStore.java:120)
 
at
org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:154)
 
at
org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:412)
 
at
org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:181) 




and now I am getting this error for every page opened making the log file
extremely large: 

May 14 11:36:31 WARN  DiskDataStore-Cannot save page with id '866' because
the data file cannot be opened. 
May 14 11:36:31 ERROR
DiskDataStore-/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data
(Permission denied) 
java.io.FileNotFoundException:
/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data
(Permission denied) 
at java.io.RandomAccessFile.open(Native Method) 
at java.io.RandomAccessFile.init(RandomAccessFile.java:233) 
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:425)
 
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:343)
 
at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:181) 
at
org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:355)
 
at java.lang.Thread.run(Thread.java:722) 
May 14 11:36:31 WARN  DiskDataStore-Cannot save page with id '0' because the
data file cannot be opened. 
May 14 11:36:32 ERROR
DiskDataStore-/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data
(Permission denied) 
java.io.FileNotFoundException:
/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data
(Permission denied) 
at java.io.RandomAccessFile.open(Native Method) 
at java.io.RandomAccessFile.init(RandomAccessFile.java:233) 
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:425)
 
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:343)
 
at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:181) 
at
org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:355)
 
at java.lang.Thread.run(Thread.java:722) 
May 14 11:36:32 WARN  DiskDataStore-Cannot save page with id '0' because the
data file cannot be opened. 





What can be causing these errors? is this more of a Tomcat thing or Wicket? 

Thanks! 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DiskDataStore-errors-in-production-tp4665840.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DiskDataStore errors in production

2014-05-15 Thread eaglei22
Hi, my application in production often gets this error: 
May 14 09:12:27 ERROR
DiskDataStore-/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/4729/2939/909EAC3343856968BA7B1864B71CEA85/data
(Too many open files) 
java.io.FileNotFoundException:
/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/4729/2939/909EAC3343856968BA7B1864B71CEA85/data
(Too many open files) 
at java.io.RandomAccessFile.open(Native Method) 
at java.io.RandomAccessFile.init(RandomAccessFile.java:233) 
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:425)
 
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:343)
 
at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:181) 
at
org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:228)
 
at
org.apache.wicket.pageStore.DefaultPageStore.storePageData(DefaultPageStore.java:120)
 
at
org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:154)
 
at
org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:412)
 
at
org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:181) 




and now I am getting this error for every page opened making the log file
extremely large: 

May 14 11:36:31 WARN  DiskDataStore-Cannot save page with id '866' because
the data file cannot be opened. 
May 14 11:36:31 ERROR
DiskDataStore-/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data
(Permission denied) 
java.io.FileNotFoundException:
/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data
(Permission denied) 
at java.io.RandomAccessFile.open(Native Method) 
at java.io.RandomAccessFile.init(RandomAccessFile.java:233) 
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:425)
 
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:343)
 
at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:181) 
at
org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:355)
 
at java.lang.Thread.run(Thread.java:722) 
May 14 11:36:31 WARN  DiskDataStore-Cannot save page with id '0' because the
data file cannot be opened. 
May 14 11:36:32 ERROR
DiskDataStore-/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data
(Permission denied) 
java.io.FileNotFoundException:
/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data
(Permission denied) 
at java.io.RandomAccessFile.open(Native Method) 
at java.io.RandomAccessFile.init(RandomAccessFile.java:233) 
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:425)
 
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:343)
 
at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:181) 
at
org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:355)
 
at java.lang.Thread.run(Thread.java:722) 
May 14 11:36:32 WARN  DiskDataStore-Cannot save page with id '0' because the
data file cannot be opened. 





What can be causing these errors? is this more of a Tomcat thing or Wicket? 

Thanks! 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DiskDataStore-errors-in-production-tp4665841.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: calling downloadLink.onClick() directly

2014-03-26 Thread eaglei22
Thanks Martin,

I guess what I am more curious in, is how come when I call the
downloadLink.onClick(), or do:


public void onPostProcessTarget(AjaxRequestTarget target)
{
   final File file = excelFile;
   IResourceStream resourceStream = new FileResourceStream(
new 
org.apache.wicket.util.file.File(file));

   ResourceStreamRequestHandler handler = new
ResourceStreamRequestHandler(resourceStream,  file.getName());
   handler.setContentDisposition(ContentDisposition.ATTACHMENT);

  
getPage().getRequestCycle().scheduleRequestHandlerAfterCurrent(handler);


I get the ajax error as shown above thread. It's only on onClick() call, or
when 
getPage().getRequestCycle().scheduleRequestHandlerAfterCurrent(handler);
is called..

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/calling-downloadLink-onClick-directly-tp4665125p4665133.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: calling downloadLink.onClick() directly

2014-03-26 Thread eaglei22
I am not familar on how to perform a redirect from AJAX. I tried:

  new RedirectPage(excelFile.getPath());

and,

  target.appendJavaScript(location.hash='excelFile.getPath()');

Can you give me a simple example?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/calling-downloadLink-onClick-directly-tp4665125p4665136.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



calling downloadLink.onClick() directly

2014-03-25 Thread eaglei22
Hello, I currently am using a downloadLink to export a csv file to the user.
What I am currently doing is using a worker thread to handle the creation of
the csv file while an AjaxSelfUpdatingTimerBehavior updates the GUI of its
progress.. Then at completion the intent is to call downloadLink.onClick()
to invoke the behind the scenes work and get the user the dialog box
automatically to download the file.  I get everything running fine until
downloadLink.onClick() is called I get an ajax error: 

Wicket.Ajax.Call.failure: Error while parsing response: Error: Invalid XML:
��ࡱ�;��...`��Page 1�����=Bems_ID
First_NameMiddle_NameLast_NameUser_Status

it looks like the csv file is being outputted to the ajax debugger. 

What is the best way to invoke the onClick method automatically of the
DownloadLink class? 

Here is a snippet of what I am doing:

private void setupDownloadLink()
{
   IModel excelFileModel = new AbstractReadOnlyModel()
   {
  public Object getObject() 
  { 
 if(excelFile == null)
 {
 excelFile = new File(Error getting File);
 }
return excelFile;
  }
   };
  
 auditDownloadlink = new DownloadLink(auditDownloadlink,
excelFileModel)
 {  
public void onClick()
{
downLoadLinkClicked = true;
if (newSearchWasInitialized)
{
newSearchWasInitialized = false;
if (!extractionIsRunning)
{
worker = new 
CreateExcelExtractionWorker();
thread = new Thread(worker);
thread.start();
extractionIsRunning = true;
excelFile = null;
return;
}
}
  
if(!newSearchWasInitialized)
{
if (!extractionIsRunning)
{
  super.onClick();
}
}
}
 };
 
 auditDownloadlink.add(new Label(excelLabel, Excel));
 auditDownloadlink.setOutputMarkupPlaceholderTag(true);
 auditDownloadlink.setDeleteAfterDownload(true);
 auditDownloadlink.setCacheDuration(Duration.ONE_SECOND);
 auditDownloadlink.setVisible(false);
 
 
  findUserForm.add(auditDownloadlink);
}

Here basically when the user selects the button, it starts the worker
thread.. Then when completed, the AjaxSelfUpdatingTimerBehavior will call
the onClick() method, where in turn after each check is made then
super.onClick() is called to process the downloading of the file as normal:

public void onPostProcessTarget(AjaxRequestTarget 
target)
{
System.out.println(isRunning);
if(!extractionIsRunning)
{
if(downLoadLinkClicked)
{
  System.out.println(refreshed); 
  progressModel.setObject(Extraction 
to Excel file complete. Click
Download);
  auditDownloadlink.addOrReplace(new 
Label(excelLabel, Download));
  target.add(findUserForm);
  target.add(progress);
  stop(target);
  System.out.println(isStopped);
  downLoadLinkClicked = false;
  
  auditDownloadlink.onClick();
}
}
}
};
progress.add(progressUpdateBehavior);
progress.setOutputMarkupId(true);

Do I have to attach it back to the requestCycle? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/calling-downloadLink-onClick-directly-tp4665125.html
Sent 

DefaultExceptionMapper-Connection lost, give up responding.

2014-03-20 Thread eaglei22
I am getting this error in IE while using a modal window to perform a search
of the database:

Mar 20 09:50:10 ERROR DefaultExceptionMapper-Connection lost, give up
responding.
org.apache.wicket.protocol.http.servlet.ResponseIOException:
ClientAbortException:  java.net.SocketException: Broken pipe
at
org.apache.wicket.protocol.http.servlet.ServletWebResponse.write(ServletWebResponse.java:139)
at
org.apache.wicket.protocol.http.HeaderBufferingWebResponse.write(HeaderBufferingWebResponse.java:191)
at
org.apache.wicket.request.Response$StreamAdapter.write(Response.java:148)
at org.apache.wicket.util.io.Streams.copy(Streams.java:109)
at org.apache.wicket.util.io.Streams.copy(Streams.java:76)
at
org.apache.wicket.request.resource.AbstractResource$WriteCallback.writeStream(AbstractResource.java:707)
at
org.apache.wicket.request.resource.ResourceStreamResource$2.writeData(ResourceStreamResource.java:207)
at
org.apache.wicket.request.resource.AbstractResource.respond(AbstractResource.java:528)
at
org.apache.wicket.request.handler.resource.ResourceStreamRequestHandler.respond(ResourceStreamRequestHandler.java:139)
at
org.apache.wicket.markup.html.link.DownloadLink$1.respond(DownloadLink.java:178)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:97)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: ClientAbortException:  java.net.SocketException: Broken pipe
at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:388)
at
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:462)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:366)
at
org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:413)
at
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:401)
at
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:91)
at
org.apache.wicket.protocol.http.servlet.ServletWebResponse.write(ServletWebResponse.java:135)
... 34 more
Caused by: java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
at org.apache.coyote.ajp.AjpProcessor.output(AjpProcessor.java:295)
at
org.apache.coyote.ajp.AbstractAjpProcessor$SocketOutputBuffer.doWrite(AbstractAjpProcessor.java:1122)
at 

How does Wicket know when to make a new session?

2014-03-03 Thread eaglei22
My company uses a webgate to verify the user before redirecting to the
application. Wicket works fine outside of this webgate and retains one user
session for each tab opened in the browser or new browser window. But when
accessed through this webgate, wicket creates a new session and expires the
old one. So anything running in the original opened tab gets terminated.
What are some things I can look for to work around this through Wicket?

Thanks. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-does-Wicket-know-when-to-make-a-new-session-tp4664756.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Detecting if page is opened in another tab

2014-02-27 Thread eaglei22
Thanks Martin, 

This seems to be the solution, but isn't working as it should.

I tried this:

 add(new AjaxNewWindowNotifyingBehavior() 
 {

/**
 * 
 */
private static final long serialVersionUID = 1L;

@Override
protected void onNewWindow(AjaxRequestTarget arg0)
{

System.out.println(called//.);
String message = You already have an instance 
of Bulk Loader running.
Please   view from the current opened window.;
setResponsePage(new BulkLoadPage(message)); 
} 
 
 });


And the method: onNewWindow never even enters on a new instance of the page,
while one is currently opened in another tab. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Detecting-if-page-is-opened-in-another-tab-tp4664674p4664718.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Detecting if page is opened in another tab

2014-02-25 Thread eaglei22
Hello, I am running a thread that displays a list of results to the page. I
want the user to be able to open the page only in one browser tab. If they
open it in another tab then it will give an information message and not let
them. I have a worker thread running, so I only want the list being
displayed in one tab, and not updating multiple instance of the same page
throughout the session. I was able to do this setting a flag in the session,
but then there comes the issues if the user totally exits out of all pages
and then reopens the application and goes to the page. Then the user is
locked out of the page entirely. 

I tried browsing the pageMap and it seems the page still exists in the
pageMap even if the user closes all tabs of the application. So that idea
didn't work.. I was able to check this because I would open an instance of
the page and check the pageMap to see if it already exists in there
somewhere. Then I closed any tabs with the application opened in it, and
then opened the page in a new tab. The page still existed in the pageMap.

What is the best way to iterate through and check if there is another active
instance of a page attached to the application (beyond just sitting in the
pageMap and not currently active) I need to do this since there doesn't seem
a way to check if the page was closed. I tried using detach(), but I have an
AjaxSelfUpdatingTimer, and this calls detach() numerous times.. so that
wouldn't work either. 


Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Detecting-if-page-is-opened-in-another-tab-tp4664674.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Issue on multi-threaded page when opening another tab in browser

2014-02-19 Thread eaglei22
Hi Martin,

I originally had the List as an instance variable for the Page but when I
would open a new browser tab, the original page would crash and a
nullpointerException would be given because the page reference lost
reference to the object. 

So now I create in the page constructor in instance of BatchLines and pass
it along through method parameters. 

The thread is started from a method called in the constructor. Here is the
def of this method:

/
 * Method: beginProcessing
 * 
 * Invokes workerThreads 
 * 
 * returns: void
 /
private void beginProcessing(List batchLines)
{
  fullReportDwnLoadBtn.setVisible(false);
  
  try
  {
  csvFileCreater = new CSVFileCreater(LOADER_CSV_FILE_NAME);
  if(turnOnLoader)
  {
BatchLoaderProcessingThread threadJob = new
BatchLoaderProcessingThread(stringList, batchLines);
loggerThread = new Thread(threadJob);
loggerThread.start();
  }
  else
  {
BatchDeleteProcessingThread deleterThreadJob = new
BatchDeleteProcessingThread(stringList, batchLines);
loggerThread = new Thread(deleterThreadJob);
loggerThread.start(); 
  }
  } catch (IOException e)
  {
// TODO Auto-generated catch block
log.error(Inside beginProcessing() throws error:  + 
e.toString());
BatchProcessPage.this.error(An error has occurred 
starting creation of
CSV file);
  }
}

Here is the definition of the thread class:

class BatchLoaderProcessingThread implements Runnable
{
List stringList;
List batchLines;
public BatchLoaderProcessingThread(List stringList, List batchLines) 
{
this.batchLines = batchLines;
this.stringList = stringList;
}

@Override
public void run()
{
processLine(stringList, batchLines);
loaderFinished();
}   
}   


processLine is a method that is part of the Page class. 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Issue-on-multi-threaded-page-when-opening-another-tab-in-browser-tp4664552p4664570.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Issue on multi-threaded page when opening another tab in browser

2014-02-19 Thread eaglei22
I fixed this issue by making my runnable class serializable and putting a
reference to the Thread inside there and also the list. This seemed to fix
this issue. 

Thanks for your time Martin. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Issue-on-multi-threaded-page-when-opening-another-tab-in-browser-tp4664552p4664575.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Issue on multi-threaded page when opening another tab in browser

2014-02-19 Thread eaglei22
Nvm, it's still doing it. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Issue-on-multi-threaded-page-when-opening-another-tab-in-browser-tp4664552p4664576.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Issue on multi-threaded page when opening another tab in browser

2014-02-18 Thread eaglei22
Okay, so I have an issue that I have finally narrowed down to multi-threading
issues. 

I have a loader page that has a worker thread to process a csv file and
store the results into a list declared as:

List batchLines = Collections.synchronizedList(new
CopyOnWriteArrayListBatchLine());

Each BatchLine object is a row in the csv file that was processed. 


I also have a pageableListView on the page that uses the BatchLine List to
update itself. I use a 
AjaxSelfUpdatingTimerBehavior which will update the pageableListView every
two seconds.  The problem is, if I am on this page in one browser tab, and
the workerthread is running, and the page is updating, and then at the same
time I open another instance of the application in another tab of the same
browser, the thread loses focus of this List. I know this because I print
out the size of the list, and it stays the same when I open a new instance. 

I first had the List batchLines Global, but now I pass it as a parameter to
keep it local to each method. When it was global, I had to mark it transient
for serializable issues. The issue with this is the page would crash when I
opened a new tab with another instance of the application. 

What can I do to prevent this? 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Issue-on-multi-threaded-page-when-opening-another-tab-in-browser-tp4664552.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Error in Modal opening two diffrent instances of Wicket applicaiton.

2014-02-17 Thread eaglei22
Thanks Paul, I am using new sessions and the problem seems to be okay
locally, but not on the server. So I noticed that on the server (through the
access portal we use) it forces a new session per tab. So the original issue
with the modal window I thought I have found the session issue to be the
culprit, but now even running locally I am getting page expirations when
running locally. This happens on a page that I redirect to using a
setResponsePage, and while this is up, and I open a new application instance
inside of a new browser tab, the original tab's page expires right away.
What should I be looking at to make sure this doesn't happen. I have been
searching all over and I can't seem to find any real solutions to this
issue. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-in-Modal-opening-two-diffrent-instances-of-Wicket-applicaiton-tp4664418p4664521.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Error in Modal opening two diffrent instances of Wicket applicaiton.

2014-02-13 Thread eaglei22
Okay, so I was able to try some more scenerios, and it looks like if I have
one instance of the application open in one tab, and open a modal window and
now do anything.. Then open another instance of the application but not even
click on anything, and go back to the first intance and just hit cancel on
the Modal which calls a window.close(target)  then I get a page expired
error.. 

So, How do I keep the modal window from being affected by another instance
of an application being opened?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-in-Modal-opening-two-diffrent-instances-of-Wicket-applicaiton-tp4664418p4664442.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Error in Modal opening two diffrent instances of Wicket applicaiton.

2014-02-12 Thread eaglei22
Hello, I am having an issue when I have my application opened in two separate
tabs in IE or FireFox. 

Here is the problem:

I have a page called User, and in this page you can open a Modal window to
search for a user. Once a user is found, you select it, and the Modal window
closes, and that User object and its attributes is used and displayed to the
User page. 

The problem is if I have tab open on the User page and run a search in the
Modal window for another user, and while this is taking place, I open
another tab and goto another instance of the application and to the user
page, and then perform a search using the same scenerio.. The latest opened
instance of the application will return the search results to the page just
fine; and the first instance of the application and the running search will
close the page, and nothing will happen, or the page will reset itself
loading the defaulted information. This only happens when I open a new tab
and instance of the application while a current instance is already running
a search in the modal window of User page. If I open two different sessions
of the application before running any searches, then run a search in each
session everything is fine. 


Some background:
The modal class uses the PageReference passed in through its constructor. I
use this to interact with the calling pages variables. Once the modal window
closes using window.close(target);  the calling class will continue its page
update via:

modalReference.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback()
{
   public void onClose(AjaxRequestTarget target)
   {
   ..make changes to page here.




Here is what happens just before the modal window closes:

   public void onClick(AjaxRequestTarget target)
   {
   setCurrentUserFromLite(item.getModelObject());
   
((UserPage)modalWindowPage.getPage()).addUserInformation(selectedUser.getLastName(),
selectedUser.getFirstName(),
selectedUser.getMiddleName(), selectedUser.getBemsid(), );

((UserPage)modalWindowPage.getPage()).setFindUserFromModal(true);

((UserPage)modalWindowPage.getPage()).setCurrentUser(selectedUser);
window.close(target);
}



Any ideas what is happening? Or is there a way to maybe check to see if the
same functionality is being used in another instance and prevent the user
from running a search? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-in-Modal-opening-two-diffrent-instances-of-Wicket-applicaiton-tp4664418.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Error in Modal opening two diffrent instances of Wicket applicaiton.

2014-02-12 Thread eaglei22
I have made a few changes to my original explanation:

Here is the edited version:
The problem is if I have tab open on the User page and run a search in the
Modal window for another user, and while this is taking place, I open
another tab and goto another instance of the application and to the user
page, and then perform a search using the same scenerio.. The latest opened
instance of the application will return the search results to the page just
fine; and the first instance of the application and the running search will
close the modal after its done processing, and nothing will happen to the
calling page, or the calling page will reset itself loading the defaulted
information. This only happens when I open a new tab and instance of the
application while a current instance is already running a search in the
modal window of User page. If I open two different sessions of the
application before running any searches, then run a search in each session
everything is fine. 




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-in-Modal-opening-two-diffrent-instances-of-Wicket-applicaiton-tp4664418p4664419.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Error in Modal opening two diffrent instances of Wicket applicaiton.

2014-02-12 Thread eaglei22
Here is some more information on my initializating of the modal window:


add(userPageFindUserModal = new 
ModalWindow(findUserModalWindow));

userPageFindUserModal.setResizable(false);
userPageFindUserModal.setInitialHeight(23);
userPageFindUserModal.setInitialWidth(69);
userPageFindUserModal.setWidthUnit(em);
userPageFindUserModal.setHeightUnit(em);
userPageFindUserModal.setUseInitialHeight(false);

userPageFindUserModal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);

userPageFindUserModal.setPageCreator(new 
ModalWindow.PageCreator()
{
public Page createPage()
{
return new 
FindUserModal(UserPage.this.getPageReference(), 
userPageFindUserModal, server);
}
});

// on modal window close, this method will be called
userPageFindUserModal.setCloseButtonCallback(new
ModalWindow.CloseButtonCallback()
{
public boolean onCloseButtonClicked(AjaxRequestTarget 
target)
{
return true;
}
});

userPageFindUserModal.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback()
{

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-in-Modal-opening-two-diffrent-instances-of-Wicket-applicaiton-tp4664418p4664420.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: MultiThreading issues with Wicket.

2014-01-03 Thread eaglei22
I seem to be able to avoid this by limiting the amount of rows I print to the
screen from the ListView. I turned it into a PageableListView and put a max
of 200 per page, and the problem went away. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MultiThreading-issues-with-Wicket-tp4663325p4663438.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: MultiThreading issues with Wicket.

2014-01-03 Thread eaglei22
Here is the errors I get:


Jan 03 17:04:20 WARN  RequestCycleExtra-
Jan 03 17:04:20 WARN  RequestCycleExtra-Handling the following exception
org.eclipse.jetty.io.RuntimeIOException: org.eclipse.jetty.io.EofException
at
org.eclipse.jetty.io.UncheckedPrintWriter.setError(UncheckedPrintWriter.java:107)
at
org.eclipse.jetty.io.UncheckedPrintWriter.write(UncheckedPrintWriter.java:280)
at
org.eclipse.jetty.io.UncheckedPrintWriter.write(UncheckedPrintWriter.java:295)
at
org.apache.wicket.protocol.http.servlet.ServletWebResponse.sendRedirect(ServletWebResponse.java:251)
at
org.apache.wicket.protocol.http.HeaderBufferingWebResponse.sendRedirect(HeaderBufferingWebResponse.java:117)
at
org.apache.wicket.request.handler.render.WebPageRenderer.redirectTo(WebPageRenderer.java:157)
at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:300)
at
org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:165)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:310)
at
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:319)
at
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:319)
at
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:319)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:233)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:934)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:869)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:341)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)
at 
org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:515)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.eclipse.jetty.io.EofException
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:149)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:96)
at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:109)
at org.eclipse.jetty.server.HttpWriter.write(HttpWriter.java:283)
at org.eclipse.jetty.server.HttpWriter.write(HttpWriter.java:107)
at
org.eclipse.jetty.io.UncheckedPrintWriter.write(UncheckedPrintWriter.java:271)
... 40 more
Jan 03 17:04:20 WARN  RequestCycleExtra-
Jan 03 17:04:20 ERROR DefaultExceptionMapper-Unexpected error occurred
org.eclipse.jetty.io.RuntimeIOException: org.eclipse.jetty.io.EofException
at

Re: MultiThreading issues with Wicket.

2014-01-02 Thread eaglei22
Following the example for multi-threading, I still randomly get:

SSAID: Access6
count: 1213
SSAID: Access6
java.io.IOException: Read error
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:220)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at com.boeing.wicket.BulkLoadPage.processLine(BulkLoadPage.java:557)
at com.boeing.wicket.BulkLoadPage.access$0(BulkLoadPage.java:533)
at
com.boeing.wicket.BulkLoadPage$BatchLoaderProcessingThread.run(BulkLoadPage.java:1316)
at java.lang.Thread.run(Thread.java:662)
Jan 02 10:18:10 ERROR BulkLoadPage-java.io.IOException: Read error


as you can see the count is an integer to keep track of the lines, and it is
always random.. one run it can be 1213, the next 303... 

here is my thread:

class BatchLoaderProcessingThread extends Thread
{
BufferedReader buffReader2;

public BatchLoaderProcessingThread(BufferedReader buffReader2) 
{
this.buffReader2 = buffReader2;
}

@Override
public void run()
{
if(buffReader2 == null)
{
System.out.println(Inside thread, is null);
}
processLine(buffReader2);
loaderFinished();  
}   

public void cancelThread()
{
cancelLoaderThread = true;
}   
}


and it gets stuck here on the buffReadr.readLine()) 
while((strLine = buffReadr.readLine()) != null  (!cancelLoaderThread 
!cancelDeleterThread))


 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MultiThreading-issues-with-Wicket-tp4663325p4663387.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: MultiThreading issues with Wicket.

2014-01-02 Thread eaglei22
I have temporarily fixed it by first loading the lines into a string
ArrayList and just read from that list.. 

I don't really see any latency issues, so maybe this can be considered a
good alternative?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MultiThreading-issues-with-Wicket-tp4663325p4663389.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: MultiThreading issues with Wicket.

2014-01-02 Thread eaglei22
Great catch Paul. I have made the changes reccommended. However, I read the
file into the arrayList using the main thread, and then use the worker
thread for processing. I don't think the ArrayList is being modified during
this time, but just incase something is happening beyond my knowledge under
the hood that will need this or in the future I will be modifying the
contents of the Array, I have made the neccessary changes as you suggested. 

The only thing I noticed is after my worker thread finishes, my
AbstractAjaxTimerBehavior in the main thread  seems to take about 10 seconds
or so before it performs a component update on the List, even though I have
it set to 1. 

I don't get any errors anymore though, and the whole list does get processed
now. 

here is my settings for AbstractAjaxTimerBehavior:

resultsUpdateBehavior = new 
AbstractAjaxTimerBehavior(Duration.seconds(1))
{
/**
 * 
 */
private static final long serialVersionUID = 
-4790160167650215915L;

@Override
public void onTimer(AjaxRequestTarget target)
{
if (!loaderIsRunning  !deleterIsRunning)
{
target.add(loaderListContainer);
resultsUpdateBehavior.stop(target);
target.add(progress);
//  progressUpdateBehavior.stop(target);
}
else
{
target.add(loaderListContainer);
target.add(progress);
}
}

};
add(resultsUpdateBehavior);



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MultiThreading-issues-with-Wicket-tp4663325p4663394.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: MultiThreading issues with Wicket.

2014-01-02 Thread eaglei22
Thanks Paul I really appreciate your time and efforts to assist me in this
issue.

I have implemented your reccommendations and I was still getting the same
issues (This seems to only be with the larger file as well) and I thought it
was the AjaxSelfUpdatingTimer but instead it looks like the page was just
refreshing due to a stalePageException:

count: 15469
SSAID: Access6
Stopped, total line size = 15469.0
Stopped, total line size = 15469.0
Jan 02 16:54:37 WARN  RequestCycleExtra-
Jan 02 16:54:37 WARN  RequestCycleExtra-Handling the following exception
org.apache.wicket.core.request.mapper.StalePageException
Jan 02 16:54:37 WARN  RequestCycleExtra-

I seem to get this when I try to load upload the same file again after the
first instance has finished. I am going to try and run a file that takes a
bit longer to process to see if I still get the same errors. At the moment
the file finishes processing at about a second, I do add a printline inside
my timer method and it shows it has stopped well before the actual repaint
of the table, so this is what makes me thing the actual final repaint is due
to the StalePageException. 

This exception only occurs though on the consol when I try to upload a new
file, or click on any of the buttons on the page. 




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MultiThreading-issues-with-Wicket-tp4663325p4663397.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: MultiThreading issues with Wicket.

2013-12-31 Thread eaglei22
Awesome resources to look over. Thanks Paul! 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MultiThreading-issues-with-Wicket-tp4663325p4663355.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



MultiThreading issues with Wicket.

2013-12-30 Thread eaglei22
Hello, I am having an issue when using a worker thread to process a csv file. 
I have asked the same question here:

http://stackoverflow.com/questions/20747605/requestcycle-goes-null-when-using-a-separate-thread

and I wanted to post here as I feel there are not many Wicket programmers
there.


The main issue seems to be when I process a large csv file I get a read
error. But if I process a smaller one I do not. Here is the stack trace:

   java.io.IOException: Read error
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:220)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.read1(BufferedReader.java:185)
at java.io.BufferedReader.read(BufferedReader.java:261)
at java.io.BufferedReader.fill(BufferedReader.java:136)

Dec 30 13:14:31 ERROR BulkLoadPage-java.io.IOException: Read error
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at au.com.bytecode.opencsv.CSVReader.getNextLine(CSVReader.java:266)
at au.com.bytecode.opencsv.CSVReader.readNext(CSVReader.java:233)
at com..wicket.BulkLoadPage.processLine(BulkLoadPage.java:547)
at com..wicket.BulkLoadPage.access$0(BulkLoadPage.java:532)
at 

   
com..wicket.BulkLoadPage$BatchLoaderProcessingThread.run(BulkLoadPage.java:1294)
at java.lang.Thread.run(Thread.java:662)



I basically have a listView that is being updated by the main thread using
AjaxSelfUpdatingTimer - set to update every 1 second. The worker thread
which is an inner runnable class uses the methods of the main class, and
updates the arrayList which is also stored in the main class and used by the
listView.

I was originally getting a requestCycle error, which seemed to be resolved
by commenting out my feedbackPanel error message inside my catch. That error
seemed to be produced from a read error produced by the reference to the
CSVReader. The file being read in contains many lines. I believe around 15k.
Every line has the same data which I copied and pasted just to test a large
file. The file seems to work fine when it is less than 2k.. so I am thinking
maybe it is a sychronization issue or some issue with data interleaving. 

I had designed this page not knowing there would be issues with larger files
using a thread.. there is a lot of functionality and there is no issues with
a small file as stated.. just larger ones. The only job of the thread is to
call a method from the main thread. That method loops through and processes
the CSV file, and when that ends.. the thread dies. Should I be using local
variables in the thread? Or what are some steps I can take to
troubleshooting this error? Or is there a better way I should approach this
to having a worker thread process results while the main thread uses a
listView to display results. A dataView was reccommended and I will try that
as well, but I am not sure if I can use a worker thread with that or not. 

Thank you.  



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MultiThreading-issues-with-Wicket-tp4663325.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to clear autoComplete textfield in Wicket after submit?

2013-09-09 Thread eaglei22


I'm having issues clearing the input of a autoComplete Textfield.. For some
reason whenever I call target.add(reference to AutoCompleteTextField);

my input values are null...

So basically, I can clear the referenced string the input is stored in, but
everytime I call an ajaxupdate it nulls.

I tried both ajaxButton, and AjaxSubmitLink. Both get the same reactions. I
have a button to submit the input from the textField.

Code:

form wicket:id=autoCompleteForm
input wicket:id=autoCompleteTextField size=20/
button width:100px wicket:id=selectRoleBtnSelect/button   
 
/form


private void autoCompleteForm()
{
findRoleForm = new FormVoid(autoCompleteForm);
findRoleForm.setOutputMarkupId(true);
addOrReplace(findRoleForm);
field = new AutoCompleteTextFieldString(autoCompleteTextField,
new PropertyModelString(this,autoString))
{
@Override
protected IteratorString getChoices(String input)
{
if (Strings.isEmpty(input))
{
ListString emptyList = Collections.emptyList();
return emptyList.iterator();
}

ListString choices = new ArrayListString(10);

for (final Role role : rolesList)
{

final String roles = role.getRoleName();

if (roles.toUpperCase().startsWith(input.toUpperCase()))
{
choices.add(roles);
if (choices.size() == 10)
{
break;
}
}
}

return choices.iterator();
}
};
findRoleForm.addOrReplace(field);
findRoleForm.addOrReplace(new AjaxSubmitLink(selectRoleBtn,
findRoleForm)
{
protected void onSubmit(AjaxRequestTarget target, Form? form)
{
System.out.println(here1 + autoString);
if(rolesList  != null  autoString!= null)
{
if(rolesList .size() != 0)
{   
for(int i=0; i  rolesList .size(); i++)
{
System.out.println(here2 + autoString);
if(rolesList
.get(i).getRoleName().equals(autoString))
{
role = rolesList.get(i);

roleInformation.addOrReplace(new
Label(roleNameTxt, role.getRoleName()));
roleInformation.addOrReplace(new
Label(roleAliasTxt, role.getRoleAlias()));
roleInformation.addOrReplace(new
Label(roleOwnerTxt, role.getRoleOwnerId()));
roleInformation.addOrReplace(new
Label(roleStatusTxt, role.getRoleAccessStatus()));
roleInformation.addOrReplace(new
Label(roleCategoryTxt, role.getRoleCategoryName()));
roleInformation.addOrReplace(new
Label(roleDescriptionTxt, role.getRoleDescription()));
roleInformation.addOrReplace(new
Label(roleValidityTxt, role.getRoleValidityStatus()));
roleInformation.addOrReplace(new
Label(roleNumUsers, ));


//add adOrReplace(findRoleForm);
autoString = ;
target.add(field);
target.add(roleInformation);
currentRoleSelection = null;
target.add(rolesDropDownChoice);
break;
}
}
}
   }
}
}).add(getIndicatorAppender());
}





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-clear-autoComplete-textfield-in-Wicket-after-submit-tp4661268.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to clear autoComplete textfield in Wicket after submit?

2013-09-09 Thread eaglei22
To add: The autoCompleteTextField input field clears the first time, but when
I try it again. The string: autoString will be null. So if you choose your
selection on first attempt (from the search list provided), hit select
button, it gives you the correct string and clears. But when you do it for a
second time, selected a provided value, the autoString will be null.. and
will not get the input value assigned to it.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-clear-autoComplete-textfield-in-Wicket-after-submit-tp4661268p4661269.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



updating table on main page after modal window is closed..

2013-08-22 Thread eaglei22
here 
userPageFindUserModal.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback() 
{ 
public void onClose(AjaxRequestTarget target)
 { 
System.out.println(ssaIDLISTCON); 
userInformation = new WebMarkupContainer(userAttributeTable); 
userInformation.setOutputMarkupId(true); 
addUserInformation(test, Massey, J, 1234512, Enabled); 
target.add(userInformation); } }); 

When I close my modal window I want to update the contents of the calling
page... but it doesn't work.When I refresh the page however it works, but
the ajax isn't giving me access to the current page components.. How does
this work with a modal window? Is the target for the modal window? or for
the parent pages instance?Any ideas? Thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: updating table on main page after modal window is closed..

2013-08-22 Thread eaglei22
Thank you. Can you show me a simple  example of how to pass pagereference,
and then update the webmarkupcontainer?  Im not very good with javascript. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661012.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: updating table on main page after modal window is closed..

2013-08-22 Thread eaglei22
That's the example I was originally using, and I did everything like that
but my ajax doesn't work upon return calling the webmarkupcontainer, but
theirs does. So I don't understand what im doing wrong.  Am I supposef to
use a model when initializing the webmarkupcontainer?
On Aug 22, 2013 6:53 AM, Martin Grigorov-4 [via Apache Wicket] 
ml-node+s1842946n4661014...@n4.nabble.com wrote:


 https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/modal/ModalWindowPage.java?source=cc#L56

 target.appendJavaScript(top.location.reload());


 On Thu, Aug 22, 2013 at 2:43 PM, eaglei22 [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4661014i=0
 wrote:

  Thank you. Can you show me a simple  example of how to pass
 pagereference,
  and then update the webmarkupcontainer?  Im not very good with
 javascript.
 
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661012.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4661014i=1
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=4661014i=2
 
 


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661014.html
  To unsubscribe from updating table on main page after modal window is
 closed.., click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4660996code=amNob2puYWNraTI2QGdtYWlsLmNvbXw0NjYwOTk2fC0xNDg1Mzk1ODY5
 .
 NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661015.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org