Questions tagged [getresource]

283 questions
0
votes
1 answer

modx revo getresources multiple templates

Is it possible to use multiple tpl's in the getResources call? This is my code so far: [[!getPage? &element=`getResources` &tpl=`overzichtTpl` &parents=`2, 74` &hideContainers=`0` &showHidden=`1` &limit=`50` &sortby=`RAND()` …
LeoWolff
  • 29
  • 1
0
votes
1 answer

Modx revo does not compare date type TV in getResourses

I'm trying to compare date from TV with date from snippet ( i'm using &tvFilters) (or any other date string) but works only == and != operations? but i need to make >= and <=, what's wrong? examples say that it's must work, can it be some MYSQL…
Ivan
  • 325
  • 3
  • 9
0
votes
1 answer

Java class.getResource() returns null

I am trying to use files in resource directory that was marked as "resource root" in IntelliJ, but the below code fails to find the file. Could you tell me what was wrong? thanks. public class ResourceTest { public void testResource() { …
pandagrammer
  • 841
  • 2
  • 12
  • 24
0
votes
1 answer

getIntArray returns 0 from my XML file

Working on an SQLite database. I'm importing data from my XML file. The problem I got is when I try to read my int array, I only get 0 as values. Part of my XML file : 8 12
user4849541
0
votes
0 answers

Why is my program not locating my image file?

So I'm trying to test my TileC class, but whenever I run it, it shows the run-time error java.lang.IllegalArgumentException: input == null!. I'm not sure why because my path String Path = "/CourseworkAY/res/NormalSwamp.gif"; seems to be…
0
votes
1 answer

getResources Modx return null?

I am trying to access some TV from another resource using getResources, but nothing is returned. Here is my code sample [[getResources? &resources=`13` &tvPrefix=`tv.` &tpl=`@CODE:[[+tv.DefaultEmail]]` &showHidden=`1` …
Miomir Dancevic
  • 6,726
  • 15
  • 74
  • 142
0
votes
2 answers

COAP as a Streaming Source

I am currently working on IOT Coap protocol.I accessed server on local host through copper firefox plugin. Then i Added resouce having "GET" functionality in server. After that i made its client as a streaming source. Here is the code of client…
Sadaf
  • 247
  • 5
  • 16
0
votes
1 answer

create File instance with classpath

I am trying to load a file into a file instance which is located in my project. When running in Eclipse I could do it like this: File file = new File(path); I wanted to export my project to a runnable JAR but it does not work anymore. Java throws a…
Aruloci
  • 589
  • 4
  • 18
0
votes
1 answer

Can't load resource for Icon

I'm setting up a simple GUIand I got stuck trying to loading an image for a button. public class Client extends JFrame{ private JTextField field; private JLabel label; private JButton send; private Socket socket; Client(){ …
Luca
  • 1,658
  • 4
  • 20
  • 41
0
votes
1 answer

ModX getResources template chunk HTML out of order?

I have a getResources chunk that looks like:
but for some reason the first two resources…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
0
votes
2 answers

Load Bitmap on BaseAdapter

Hi I want to load resource drawable in bitmap type at baseadapter but get some error Bitmap bm = BitmapFactory.decodeResource(getResources(), R.drawable.messenger); the getResource() need to make function on the java file. how to get it?
0
votes
1 answer

XML Parsing (StAX)| getResourceAsStream from xml file returns null

So I know this is a quite popular issue however non of the solution avaialable worked for me. My code is a sample code for reading and parsing xml document. The orriginal source is in this link:…
Abdelrahman Shoman
  • 2,882
  • 7
  • 36
  • 61
0
votes
1 answer

Is there a way to programmatically copy a resource file from within a JAR to an external folder?

I am trying to access a resource file from within the jar file that is currently running. The resource I need right now is a jar file, but I need a way that will work for any file. I've tried looking at the different solutions, but none of them have…
smithb99
  • 1
  • 1
  • 3
0
votes
2 answers

getResourceAsStream() called by abstract class returning null

※ I have looked at the old questions and none fixed my problem. I am having an issue of getResourceAsStream returning null. It works in Eclipse but not when I use the project as a jar file. The jar file has a folder name config and in the folder…
lw29
  • 101
  • 2
0
votes
1 answer

Output Multiselect TV by getResource in modx revo

I try to output Multiselect TV with list of rescources by getResource. When I output the tv [[*myMultiselectTV]] with two or more id output like this - idid - without any commas. And when I use [[getResources? &resources=`[[*myMultiselectTV]]`…
Tony_m
  • 15
  • 4